結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-24 21:27:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 701 ms |
| コンパイル使用メモリ | 63,488 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-23 06:40:22 |
| 合計ジャッジ時間 | 883 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin >> s;
string::size_type pos = 0;
while((pos = s.find("treeone")) != string::npos){
s.replace(pos, 7, "forest");
pos += 6;
}
cout << s << endl;
return 0;
}