結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
treeone
|
| 提出日時 | 2018-03-29 18:05:45 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 874 ms |
| コンパイル使用メモリ | 179,564 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-07 00:20:09 |
| 合計ジャッジ時間 | 1,246 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string s, from = "treeone", to = "forest";
cin >> s;
size_t pos = s.find(from);
while(pos != string::npos){
s.replace(pos, from.size(), to);
pos = s.find(from, pos);
}
cout << s << endl;
}
treeone