結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2020-11-22 14:13:41 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 279 bytes |
| コンパイル時間 | 2,192 ms |
| コンパイル使用メモリ | 193,572 KB |
| 最終ジャッジ日時 | 2025-01-16 04:22:05 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
ソースコード
#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");
}
}
cout<<S<<endl;
return 0;
}
chacoder1