結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
東前頭十一枚目
|
| 提出日時 | 2018-08-24 21:31:39 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 376 bytes |
| コンパイル時間 | 1,425 ms |
| コンパイル使用メモリ | 167,656 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 06:44:04 |
| 合計ジャッジ時間 | 1,914 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
const int INF=INT_MAX,MOD=1e9+7;
int main(){
string s; cin>>s;
int n=s.size();
string ans;
rep(i,n){
if(s.substr(i,7)=="treeone"){
ans+="forest";
i+=6;
}else{
ans+=s[i];
}
}
cout<<ans<<endl;
return 0;
}
東前頭十一枚目