結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
annin256
|
| 提出日時 | 2018-08-26 22:37:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 285 bytes |
| コンパイル時間 | 175 ms |
| コンパイル使用メモリ | 30,976 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-01 04:01:03 |
| 合計ジャッジ時間 | 679 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <stdio.h>
#include <string.h>
char s[101];
int main() {
scanf("%s", s);
int n = strlen(s);
int i = 0;
while (i < n) {
if (strncmp(s + i, "treeone", 7) == 0) {
printf("forest");
i += 7;
} else {
printf("%c", s[i]);
i += 1;
}
}
}
annin256