結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
treeone
|
| 提出日時 | 2018-03-29 18:05:45 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 889 ms |
| コンパイル使用メモリ | 175,524 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-27 08:25:32 |
| 合計ジャッジ時間 | 1,817 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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