結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-17 17:23:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 340 bytes |
| コンパイル時間 | 411 ms |
| コンパイル使用メモリ | 55,608 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-17 05:57:42 |
| 合計ジャッジ時間 | 933 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 3 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string S;
cin>>S;
int x=0;
while(x==0){
x=(int)S.find("treeone");
if(x==(int)string::npos){
x=-1;
}else{
S[x++]='f';
S[x++]='o';
S[x++]='r';
S[x++]='e';
S[x++]='s';
S[x++]='t';
S.erase(S.begin()+x);
}
}
cout<<S<<endl;
return 0;
}