結果
問題 | No.725 木は明らかに森である |
ユーザー |
![]() |
提出日時 | 2018-08-24 21:25:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 683 bytes |
コンパイル時間 | 1,754 ms |
コンパイル使用メモリ | 193,776 KB |
最終ジャッジ日時 | 2025-01-06 12:30:22 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#include<bits/stdc++.h>using namespace std;using ll=long long;using ld=long double;using P=pair<ll,ll>;#define MOD 1000000007ll#define INF 1000000000ll#define EPS 1e-10#define FOR(i,n,m) for(ll i=n;i<(ll)m;i++)#define REP(i,n) FOR(i,0,n)#define DUMP(a) REP(d,a.size()){cout<<a[d];if(d!=a.size()-1)cout<<" ";else cout<<endl;}#define ALL(v) v.begin(),v.end()#define UNIQUE(v) sort(ALL(v));v.erase(unique(ALL(v)),v.end());#define pb push_backint main() {ios::sync_with_stdio(false);cin.tie(0);string s,t="";cin>>s;REP(i,(ll)s.size()) {if(i<=(ll)s.size()-7&&s.substr(i,7)=="treeone") {t+="forest";i+=6;} else {t+=s[i];}}cout<<t<<endl;}