Submission #58150
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> signed main(){ int n; scanf ( "%d" , &n); int u = 0, s = 0; for ( ; n-->0 ; ) { char c[5]; scanf ( "%s" , c); if ( strcmp (c, "UDON" ) == 0 ) u++; else s++; } if ( u == s ) puts ( "DRAW" ); else if ( u > s ) puts ( "Winner is UDON" ); else puts ( "Winner is SOBA" ); return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 1243 - 年越しうどん VS 年越し蕎麦 |
ユーザー名 | r1825 |
投稿日時 | 2020-01-15 16:02:46 |
言語 | C |
状態 | Accepted |
得点 | 10 |
ソースコード長 | 432 Byte |
最大実行時間 | 22 ms |
最大メモリ使用量 | 620 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 10 / 10 | in* |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 22 ms | 504 KB |
1
|
in02.txt | AC | 18 ms | 308 KB |
1
|
in03.txt | AC | 19 ms | 320 KB |
1
|
in04.txt | AC | 18 ms | 376 KB |
1
|
in05.txt | AC | 18 ms | 336 KB |
1
|
in06.txt | AC | 21 ms | 356 KB |
1
|
in07.txt | AC | 16 ms | 568 KB |
1
|
in08.txt | AC | 20 ms | 492 KB |
1
|
in09.txt | AC | 16 ms | 416 KB |
1
|
in10.txt | AC | 19 ms | 316 KB |
1
|
in11.txt | AC | 18 ms | 364 KB |
1
|
in12.txt | AC | 18 ms | 444 KB |
1
|
in13.txt | AC | 15 ms | 468 KB |
1
|
in14.txt | AC | 18 ms | 516 KB |
1
|
in15.txt | AC | 15 ms | 568 KB |
1
|
in16.txt | AC | 17 ms | 620 KB |
1
|
in17.txt | AC | 21 ms | 452 KB |
1
|
in18.txt | AC | 17 ms | 472 KB |
1
|
in19.txt | AC | 16 ms | 520 KB |
1
|
sample01.txt | AC | 17 ms | 572 KB | |
sample02.txt | AC | 22 ms | 404 KB | |
sample03.txt | AC | 14 ms | 420 KB |