結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-02 23:56:58 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 262 bytes |
| 記録 | |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 36,656 KB |
| 最終ジャッジ日時 | 2026-02-24 01:03:05 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <stdio.h>
#include <string.h>
int main()
{
char S[101];
fgets(S, 101, stdin);
char *t, *s;
for (s = S; (t = strstr(s, "treeone")) != NULL; s = t+7) {
fwrite(s, 1, t-s, stdout);
fwrite("forest", 1, 6, stdout);
}
fputs(s, stdout);
return 0;
}