Submission #00065
ソースコード
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 | #include<stdio.h> int main(){ char a[31],b[31]; int i,j; int con=0; scanf ( "%s" ,a); while (a[0]!= 'q' ||a[1]!= 'u' ||a[2]!= 'i' ||a[3]!= 't' ){ scanf ( "%s" ,b); for (i=0;b[i]!=0;i++){ for (j=0;a[j]!=0;j++){ if (a[j]==b[i]){ b[i]=32; a[j]=32; } } } for (i=0;b[i]!=0;i++){ if (b[i]!=32){ con++; } } if (con==0){ printf ( "OK\n" ); } else { printf ( "MURI\n" ); } con=0; scanf ( "%s" ,a); } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0003 - 宿題が終わらないっ! |
ユーザー名 | ei1630 |
投稿日時 | 2016-07-05 15:22:58 |
言語 | C++11 |
状態 | Accepted |
得点 | 45 |
ソースコード長 | 502 Byte |
最大実行時間 | 13 ms |
最大メモリ使用量 | 684 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 45 / 45 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input01 | AC | 11 ms | 476 KB |
1
|
input02 | AC | 13 ms | 460 KB |
1
|
input03 | AC | 10 ms | 572 KB |
1
|
input04 | AC | 10 ms | 684 KB |
1
|
input05 | AC | 10 ms | 536 KB |
1
|