結果
問題 | No.725 木は明らかに森である |
ユーザー |
![]() |
提出日時 | 2018-03-29 18:34:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 2,044 ms |
コンパイル使用メモリ | 193,684 KB |
最終ジャッジ日時 | 2025-01-05 09:41:23 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string treeone; cin >> treeone; for(int i = 0; i < treeone.size(); i++) { if(treeone.substr(i, 7) == "treeone") { cout << "forest"; i += 6; } else { cout << treeone[i]; } } cout << endl; }