Submission #55252


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <cstdio>
#include <float.h>
#include <ctype.h>
#include <queue>
#include <map>
#include <stack>
#include <limits.h>
#include <cstdlib>
#include <string>
#include <ctime>
#include <cmath>
#include <cstdlib>
#include <cfloat>
using namespace std;
int main(void) {
int century,bongo,kyori;
scanf("%d %d", ¢ury, &bongo);
if (century >= bongo) {
kyori = century - bongo;
}
else {
kyori = bongo - century;
}
if (kyori >= 10)
printf("%d\n", kyori);
else
printf("TNOK\n");
return 0;
}

ステータス

項目 データ
問題 0814 - 黒塗りの高級車
ユーザー名 Curo35
投稿日時 2019-09-27 16:47:35
言語 C++
状態 Accepted
得点 5
ソースコード長 678 Byte
最大実行時間 23 ms
最大メモリ使用量 708 KB

セット

セット 得点 Cases
1 distance 2 / 2 in1.txt, in3.txt
2 TNOK 3 / 3 in2.txt, in4.txt, in5.txt

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 23 ms 604 KB
1
in2.txt AC 18 ms 708 KB
2
in3.txt AC 20 ms 556 KB
1
in4.txt AC 23 ms 404 KB
2
in5.txt AC 16 ms 636 KB
2