結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
onsen_manjuuu
|
| 提出日時 | 2020-08-29 17:27:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 291 bytes |
| コンパイル時間 | 1,793 ms |
| コンパイル使用メモリ | 168,160 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-14 14:26:50 |
| 合計ジャッジ時間 | 2,443 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
string s; cin >> s;
string t;
int n = s.size();
for(int i = 0; i < n; i++) {
if(s.substr(i, 7) == "treeone") {
t += "forest";
i += 6;
} else {
t.push_back(s[i]);
}
}
cout << t << endl;
}
onsen_manjuuu