結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
alorie10
|
| 提出日時 | 2018-10-04 00:36:59 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 502 ms |
| コンパイル使用メモリ | 72,048 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-29 00:26:12 |
| 合計ジャッジ時間 | 1,441 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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