結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
dgd1724
|
| 提出日時 | 2018-11-24 13:14:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 359 bytes |
| コンパイル時間 | 542 ms |
| コンパイル使用メモリ | 57,760 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 19:09:31 |
| 合計ジャッジ時間 | 1,067 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
ソースコード
#include <fstream>
#include <iostream>
#include <string>
int main() {
//std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf());
std::string S;
std::cin >> S;
while (1) {
if (S.find("treeone", 0) != std::string::npos) {
S.replace(S.find("treeone", 0), 7, "forest");
}
else {
break;
}
}
std::cout << S << std::endl;
return 0;
}
dgd1724