Submission #00122


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
int main(){
int n,i;
scanf("%d", n);
char s[n+1];
scanf("%s", s);
for(i=0;i<n-1;i++){
if(s[i]=='o'&&s[i+1]=='j'){
s[i]='j';
s[i+1] = 'o';
}else if(s[i]=='i'&&s[i+1]=='o'){
s[i]='o';
s[i+1] = 'i';
}
}
printf("%s\n", s);
return(0);
}

ステータス

項目 データ
問題 0005 - JOI ソート
ユーザー名 ei2229
投稿日時 2022-05-23 18:18:57
言語 C
状態 Runtime Error
得点 0
ソースコード長 371 Byte
最大実行時間 61 ms
最大メモリ使用量 536 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01-01.txt RE 61 ms 376 KB
1
01-02.txt RE 35 ms 408 KB
1
01-03.txt RE 29 ms 464 KB
1
01-04.txt RE 32 ms 520 KB
1
01-05.txt RE 29 ms 476 KB
1
01-06.txt RE 36 ms 408 KB
1
01-07.txt RE 26 ms 432 KB
1
01-08.txt RE 35 ms 484 KB
1
01-09.txt RE 26 ms 536 KB
1
01-10.txt RE 22 ms 496 KB
1
01-11.txt RE 29 ms 396 KB
1
01-12.txt RE 28 ms 360 KB
1
01-13.txt RE 28 ms 284 KB
1
01-14.txt RE 32 ms 304 KB
1
01-15.txt RE 33 ms 356 KB
1
01-16.txt RE 25 ms 412 KB
1
sample-01.txt RE 25 ms 372 KB
1
sample-02.txt RE 31 ms 300 KB
1
sample-03.txt RE 27 ms 320 KB
1