結果
問題 |
No.725 木は明らかに森である
|
ユーザー |
![]() |
提出日時 | 2018-08-24 21:45:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 1,499 ms |
コンパイル使用メモリ | 158,940 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 07:01:09 |
合計ジャッジ時間 | 2,061 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 1 RE * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; for(int i=0;i<s.size()-6;++i){ if(s.substr(i,7)=="treeone"){ s.erase(i,7); s.insert(i,"forest"); } } cout << s << endl; return 0; }