Submission #00146


ソースコード

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>
int main(){
int n,a,b,e=0,f;
char str[20][21],c[8]="nishima",d='m';
scanf("%d",&n);
for(a=0;a<n;a++){
scanf("%s",str[a]);
for(b=0;str[a][b-1]!='\0';b++){
if(str[a][b]==c[0]){
if(str[a][b+1]==c[1]){
if(str[a][b+2]==c[2]){
if(str[a][b+3]==c[3]){
if(str[a][b+4]==c[4]){
if(str[a][b+5]==c[5]){
if(str[a][b+6]==c[6]){
str[a][b]=d;
e++;
}
}
}
}
}
}
}
}
}
for(f=0;f<n;f++){
printf("%s\n",str[f]);
}
printf("nishima is %d\n",e);
return(0);
}

ステータス

項目 データ
問題 0002 - How many Island do you have?
ユーザー名 e1613
投稿日時 2016-05-14 16:05:07
言語 C++11
状態 Wrong Answer
得点 0
ソースコード長 586 Byte
最大実行時間 14 ms
最大メモリ使用量 680 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.txt WA 12 ms 476 KB
1
in02.txt WA 13 ms 460 KB
1
in03.txt WA 14 ms 452 KB
1
in04.txt WA 10 ms 560 KB
1
in05.txt WA 11 ms 680 KB
1