Submission #40099
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 | #include <stdio.h> f( const char *s){ return s[0]== 'm' && s[1]== 'i' && s[2]== 'a' && s[3]== 'r' && s[4]== 'e' && s[5]== 'c' && s[6]== 'h' && s[7]== 'i' ; } main() { char s[1000100]; fgets (s, sizeof (s), stdin); for ( int i=0; s[i]!= '\0' ; ++i) if (f(s+i)) fputs ( "mochimochi" , stdout), i+=7; else putchar (s[i]); } |
ステータス
項目 | データ |
---|---|
問題 | 0898 - みあれちもちもち |
ユーザー名 | Arumakan_ei1727 |
投稿日時 | 2018-07-29 10:14:21 |
言語 | C |
状態 | Accepted |
得点 | 3 |
ソースコード長 | 342 Byte |
最大実行時間 | 32 ms |
最大メモリ使用量 | 5004 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 3 / 3 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
corner_i.txt | AC | 32 ms | 2528 KB |
1
|
in00.txt | AC | 22 ms | 1640 KB |
1
|
in01.txt | AC | 20 ms | 1564 KB |
1
|
in02.txt | AC | 21 ms | 1580 KB |
1
|
in03.txt | AC | 14 ms | 1632 KB |
1
|
in04.txt | AC | 16 ms | 1684 KB |
1
|
in05.txt | AC | 17 ms | 1740 KB |
1
|
in06.txt | AC | 23 ms | 1788 KB |
1
|
in07.txt | AC | 21 ms | 1620 KB |
1
|
in08.txt | AC | 14 ms | 1764 KB |
1
|
in09.txt | AC | 21 ms | 1712 KB |
1
|
in10.txt | AC | 21 ms | 1736 KB |
1
|
in11.txt | AC | 28 ms | 1912 KB |
1
|
in12.txt | AC | 28 ms | 2868 KB |
1
|
in13.txt | AC | 29 ms | 4152 KB |
1
|
in14.txt | AC | 30 ms | 5004 KB |
1
|
sample_i.txt | AC | 18 ms | 4120 KB |
1
|