Codeforces Round #677 DIV3 B問題 - Yet Another Bookshelf

Source

Codeforces Round #677 DIV3 B問題
Problem description

問題概要

省略

解法

省略

cLayversion 20201115-2)のコード

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)

ログイン: