結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-02 16:04:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 1,154 ms |
| コンパイル使用メモリ | 159,604 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-16 00:08:35 |
| 合計ジャッジ時間 | 1,641 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 3 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s,t="treeone",u="forest";
cin>>s;
auto pos=s.find(t);
while(pos!=string::npos){
s.replace(pos,t.size(),u);
pos=s.find(t,pos+t.size());
}
cout<<s<<endl;
}