結果
問題 |
No.725 木は明らかに森である
|
ユーザー |
![]() |
提出日時 | 2020-11-22 14:08:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 2,087 ms |
コンパイル使用メモリ | 193,416 KB |
最終ジャッジ日時 | 2025-01-16 04:21:55 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.length()-6;i++){ if(S.substr(i,7)=="treeone"){ S.replace(i,7,"forest"); } } cout<<S<<endl; return 0; }