Submission #00248


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a>=b){
if(a-b<=10){
cout<<"TNOK"<<endl;
}else if(a-b>=10){
cout<<a-b<<endl;
}
}
if(a<=b){
if(b-a<=10){
cout<<"TNOK"<<endl;
}else if(b-a>=10){
cout<<b-a<<endl;
}
}
return(0);
}

ステータス

項目 データ
問題 0012 - 黒塗りの高級車
ユーザー名 r1732
投稿日時 2017-11-06 18:25:45
言語 C++11
状態 Wrong Answer
得点 4.8
ソースコード長 332 Byte
最大実行時間 24 ms
最大メモリ使用量 532 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 13 ms 476 KB
1
in2.txt WA 24 ms 448 KB
2
in3.txt AC 12 ms 428 KB
1
in4.txt WA 13 ms 532 KB
2
in5.txt AC 20 ms 508 KB
2