Submission #00083


ソースコード

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
34
#include<stdio.h>
#include<string.h>
int main(){
char s1[31]={0};
char s2[31]={0};
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++;
s1[j]='0';
j=0;
i++;
}
}
}
if(l==len){
printf("OK\n");
} else{
printf("MURI\n");
}
l=0;
len=0;
lan=0;
}
return(0);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 WA 14 ms 476 KB
1
input02 WA 13 ms 712 KB
1
input03 WA 10 ms 568 KB
1
input04 WA 11 ms 680 KB
1
input05 WA 9 ms 536 KB
1