Submission #00028
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #include<iostream> using namespace std; int main(){ int n,m,np=0,mp=0; for ( int i = 0;i < 7;i++){ cin>>n>>m; if (n > m){ np++; } else { mp++; } if (np == 4||mp == 4){ i = 8; } } if (np > mp){ cout<< "M\n" ; } else { cout<< "T\n" ; } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0008 - 試合結果 |
ユーザー名 | r2213 |
投稿日時 | 2022-07-19 16:35:23 |
言語 | C++17 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 384 Byte |
最大実行時間 | 39 ms |
最大メモリ使用量 | 604 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
problem01_input1.txt | AC | 39 ms | 604 KB |
1
|
problem01_input2.txt | AC | 34 ms | 576 KB |
1
|
problem01_input3.txt | AC | 23 ms | 552 KB |
1
|
problem01_input4.txt | AC | 25 ms | 520 KB |
1
|
problem01_input5.txt | AC | 22 ms | 492 KB |
1
|
problem01_input6.txt | AC | 31 ms | 460 KB |
1
|