結果
問題 |
No.725 木は明らかに森である
|
ユーザー |
|
提出日時 | 2019-05-17 17:25:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 341 bytes |
コンパイル時間 | 459 ms |
コンパイル使用メモリ | 56,524 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 05:57:43 |
合計ジャッジ時間 | 925 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 1 |
ソースコード
#include <iostream> #include <string> using namespace std; int main(){ string S; cin>>S; int x=0; while(x!=-1){ 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; }