Submission #00070


ソースコード

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
#include<stdio.h>
#include<string.h>
int main(){
char s2[31],s1[31];
int i,j,l=0;
while(1){
scanf("%s",s1);
if(s1=="quit") 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:31:42
言語 C++11
状態 Time Limit Exceeded
得点 0
ソースコード長 505 Byte
最大実行時間 1000 ms
最大メモリ使用量 59800 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 TLE 1000 ms 13020 KB
1
input02 TLE 1000 ms 25032 KB
1
input03 TLE 1000 ms 37432 KB
1
input04 TLE 1000 ms 49192 KB
1
input05 TLE 1000 ms 59800 KB
1