結果
問題 |
No.725 木は明らかに森である
|
ユーザー |
![]() |
提出日時 | 2020-11-22 14:15:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 1,984 ms |
コンパイル使用メモリ | 193,204 KB |
最終ジャッジ日時 | 2025-01-16 04:22:15 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin>>S; if(S.length()<7){ cout<<S<<endl; return 0; } for(int i=0;i<S.length()-6;i++){ if(S.substr(i,7)=="treeone"){ S.replace(i,7,"forest"); i+=6; } } cout<<S<<endl; return 0; }