結果
問題 |
No.725 木は明らかに森である
|
ユーザー |
![]() |
提出日時 | 2019-01-25 21:56:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 673 ms |
コンパイル使用メモリ | 56,880 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 04:52:24 |
合計ジャッジ時間 | 1,276 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#include<iostream> #include<string> int main() { std::string S; std::cin >> S; for(int i = 0; i < S.size(); i++) { if(S[i] == 't') { if(S.substr(i,7) == "treeone") { std::cout << "forest"; i += 6; continue; } } std::cout << S[i]; } std::cout << "\n"; return 0; }