結果
問題 |
No.725 木は明らかに森である
|
ユーザー |
![]() |
提出日時 | 2019-12-01 08:58:12 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-21 04:20:15 |
合計ジャッジ時間 | 555 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#include <stdio.h> #include <string.h> int main() { char s[101]; scanf("%s", s); int start, pos=0; char *p, tmp[101]; while ((p=strstr(&s[pos], "treeone"))!=0) { start=p-s; pos=start+6; strcpy(tmp, &s[start+7]); strcpy(&s[start], "forest"); strcat(s, tmp); } printf("%s\n", s); return 0; }