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

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:47 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 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;
}

2 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;
}

3 PHP[ | ]

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