# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
21153 | 2017-04-06T08:24:17 Z | jayceking | scanf 함수 5 (BSC_0_7) | C++14 | 0 ms | 1116 KB |
#include<cstdio> int main() { int t1, t2; scanf("%d %d", &t1, &t2); printf("%d%s", (t1 + t2) / 2, (t1 + t2) & 1 ? ".5" : ""); }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 1116 KB | Output is correct |
2 | Correct | 0 ms | 1116 KB | Output is correct |
3 | Correct | 0 ms | 1116 KB | Output is correct |
4 | Correct | 0 ms | 1116 KB | Output is correct |
5 | Correct | 0 ms | 1116 KB | Output is correct |
6 | Correct | 0 ms | 1116 KB | Output is correct |
7 | Correct | 0 ms | 1116 KB | Output is correct |
8 | Correct | 0 ms | 1116 KB | Output is correct |
9 | Correct | 0 ms | 1116 KB | Output is correct |
10 | Correct | 0 ms | 1116 KB | Output is correct |