結果
| 問題 |
No.725 木は明らかに森である
|
| ユーザー |
hanorver
|
| 提出日時 | 2018-10-08 22:37:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 363 bytes |
| コンパイル時間 | 895 ms |
| コンパイル使用メモリ | 80,692 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 15:55:20 |
| 合計ジャッジ時間 | 1,190 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
#include <cmath>
#include <map>
int main(void) {
std::string s;
std::cin >> s;
auto pos = s.find("treeone");
while ((pos = s.find("treeone", pos)) != std::string::npos) {
s.replace(pos, 7U, "forest");
pos += 6;
}
std::cout << s << std::endl;
return 0;
}
hanorver