Submission #63837
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e; cin>>a>>b; if (a>=b){ if (a-b<=10){ cout<< "TNOK" << '\n' ; } else { cout<<a-b<< '\n' ; } } if (a<b){ if (b-a<=10){ cout<< "TNOK" << '\n' ; } else { cout<<b-a<< '\n' ; } } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0814 - 黒塗りの高級車 |
ユーザー名 | ei2023 |
投稿日時 | 2020-09-07 18:07:53 |
言語 | C++ |
状態 | Accepted |
得点 | 5 |
ソースコード長 | 380 Byte |
最大実行時間 | 30 ms |
最大メモリ使用量 | 604 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | distance | 2 / 2 | in1.txt, in3.txt |
2 | TNOK | 3 / 3 | in2.txt, in4.txt, in5.txt |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # | |
---|---|---|---|---|---|
in1.txt | AC | 30 ms | 604 KB |
1
|
|
in2.txt | AC | 18 ms | 448 KB |
2
|
|
in3.txt | AC | 24 ms | 424 KB |
1
|
|
in4.txt | AC | 23 ms | 520 KB |
2
|
|
in5.txt | AC | 22 ms | 492 KB |
2
|