AtCoder Regular Contest 065
AtCoder Beginner Contest 049
問題文 (ARC)
問題文 (ABC)
省略
省略
C++に変換後のコードはこちら
char S[100002];
int N;
{
rd(S@N);
while(N){
if(N>=5 && arrcmp(5, S+N-5, 5, "dream") ==0) N -= 5, continue;
if(N>=7 && arrcmp(7, S+N-7, 7, "dreamer")==0) N -= 7, continue;
if(N>=5 && arrcmp(5, S+N-5, 5, "erase") ==0) N -= 5, continue;
if(N>=6 && arrcmp(6, S+N-6, 6, "eraser") ==0) N -= 6, continue;
break;
}
wt(if[N,"NO","YES"]);
}
Current time: 2024年03月29日22時28分48秒
Last modified: 2019年08月29日13時45分16秒 (by laycrs)
Tags: Competitive_Programming_Incomplete AtCoder AtCoder_Regular_Contest AtCoder_Beginner_Contest ARC065 ABC049 ARC_A ABC_C
トップページに戻る
Logged in as: unknown user (not login)