Codeforces Round #677 DIV3 B問題
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N, A[50];
{
REP(rd_int()){
int mn, mx, res = 0;
rd(N,A(N));
rep(i,N) if(A[i]) mn = i, break;
rrep(i,N) if(A[i]) mx = i, break;
rep(i,mn,mx) if(A[i]==0) res++;
wt(res);
}
}
Current time: 2024年04月18日23時21分29秒
Last modified: 2020年11月16日23時40分36秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF677 CF_DIV3_B
トップページに戻る
Logged in as: unknown user (not login)