結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
alorie10
|
| 提出日時 | 2018-10-04 00:36:59 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 305 bytes |
| コンパイル時間 | 565 ms |
| コンパイル使用メモリ | 55,772 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 10:39:32 |
| 合計ジャッジ時間 | 1,019 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include <iostream>
using namespace std;
int main(void){
// Your code here!
string s;
cin>>s;
for(int i=0;i<s.size();i++){
if(s.substr(i,7)!="treeone"){
cout<<s[i];
}
else{
cout<<"forest";
i+=6;
}
}
cout<<endl;
}
alorie10