"카타 8급 You Can't Code Under Pressure #1"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-분류:PHP +))
5번째 줄: 5번째 줄:


==C==
==C==
[[분류:카타 8급 C]]
<source lang='c'>
<source lang='c'>
#include <stdint.h>
#include <stdint.h>
19번째 줄: 20번째 줄:


==C++==
==C++==
[[분류:카타 8급 C++]]
<source lang='cpp'>
<source lang='cpp'>
#include <cstdint>
#include <cstdint>
33번째 줄: 35번째 줄:


==PHP==
==PHP==
[[분류:카타 8급 PHP]]
<source lang='php'>
<source lang='php'>
function doubleInteger($i) {
function doubleInteger($i) {
38번째 줄: 41번째 줄:
}
}
</source>
</source>
[[분류:C++]]
[[분류:카타 8급 C]]
[[분류:카타 8급 PHP]]

2019년 2월 6일 (수) 12:48 판

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