結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
mas9612
|
| 提出日時 | 2019-08-03 16:12:55 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 171µs | |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 71,912 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-08 12:53:20 |
| 合計ジャッジ時間 | 1,607 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
string treeone("treeone");
for (int i = 0; i < s.length();) {
if ((s[i] == 't') && (s.substr(i, treeone.length()) == treeone)) {
cout << "forest";
i += treeone.length();
} else {
cout << s[i];
++i;
}
}
cout << '\n';
}
mas9612