카타 8급 You Can't Code Under Pressure #1

Jmnote bot (토론 | 기여)님의 2019년 2월 3일 (일) 04:03 판 (봇: 자동으로 텍스트 교체 (-분류:PHP +))

1 개요

카타 8급 C
# 🔗 문제 풀이

틀:카타 8급-4

2 C

#include <stdint.h>
int32_t double_integer(int32_t n) {
  return n*2;
}
#include <stdint.h>
int32_t double_integer(int32_t n) {
  return n<<1;
}

3 C++

#include <cstdint>
int32_t double_integer(int32_t n) {
  return n*2;
}
#include <cstdint>
int32_t double_integer(int32_t n) {
  return n << 1;
}

4 PHP

function doubleInteger($i) {
  return $i*2;
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}