AtCoder Regular Contest 098
AtCoder Beginner Contest 098
問題文 (ARC)
問題文 (ABC)
省略
省略
C++に変換後のコードはこちら
int N; char S[300002];
{
int i, a = 0, b = 0, res = int_inf;
rd(N,S);
rep(i,N) if(S[i]=='E') b++;
rep(i,N){
if(S[i]=='E') b--;
res <?= a + b;
if(S[i]=='W') a++;
}
wt(res);
}
Current time: 2024年03月29日20時50分44秒
Last modified: 2019年08月29日02時08分08秒 (by laycrs)
Tags: Competitive_Programming_Incomplete AtCoder AtCoder_Regular_Contest AtCoder_Beginner_Contest ARC098 ABC098 ARC_A ABC_C
トップページに戻る
Logged in as: unknown user (not login)