結果
| 問題 |
No.725 木は明らかに森である
|
| ユーザー |
hanorver
|
| 提出日時 | 2018-10-08 22:32:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 346 bytes |
| コンパイル時間 | 668 ms |
| コンパイル使用メモリ | 80,440 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 15:55:15 |
| 合計ジャッジ時間 | 1,180 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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");
}
std::cout << s << std::endl;
return 0;
}
hanorver