Submission #00078


ソースコード

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
32
33
#include<stdio.h>
#include<string.h>
int main(){
char s1[31],s2[31];
char s3[5]="quit";
int i,j,l=0;
while(1){
scanf("%s",s1);
if(strcmp(s1,s3)==0) break;
scanf("%s",s2);
int lan=strlen(s1);
int len=strlen(s2);
for(i=0;i<len;i++){
for(j=0;j<lan;j++){
if(s1[j]==s2[i]){
l++;
i++;
s1[j]='0';
j=0;
}
}
}
if(l==len){
printf("OK\n");
} else{
printf("MURI\n");
}
l=0;
len=0;
lan=0;
}
return(0);
}

ステータス

項目 データ
問題 0003 - 宿題が終わらないっ!
ユーザー名 ei1612
投稿日時 2016-07-05 15:43:58
言語 C++11
状態 Wrong Answer
得点 0
ソースコード長 525 Byte
最大実行時間 18 ms
最大メモリ使用量 540 KB

セット

セット 得点 Cases
1 ALL 0 / 45 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 10 ms 472 KB
1
input02 WA 13 ms 460 KB
1
input03 WA 18 ms 448 KB
1
input04 AC 11 ms 432 KB
1
input05 AC 13 ms 540 KB
1