結果
| 問題 |
No.725 木は明らかに森である
|
| ユーザー |
hanorver
|
| 提出日時 | 2018-10-08 22:36:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| コンパイル時間 | 713 ms |
| コンパイル使用メモリ | 80,732 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 15:55:18 |
| 合計ジャッジ時間 | 1,168 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
ソースコード
#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")) != std::string::npos) {
s.replace(pos, 7U, "forest");
pos += 8;
}
std::cout << s << std::endl;
return 0;
}
hanorver