Codeforces Round #595 DIV3 A問題 - Yet Another Dividing into Teams

Source

Codeforces Round #595 DIV3 A問題
Problem description

問題概要

省略

解法

省略

cLayversion 20191108-1)のコード

C++に変換後のコードはこちら

//no-unlocked
int N, A[100];
{
  REP(rd_int()){
    rd(N,A(N));
    sortA(N, A);
    rep(i,1,N) if(A[i-1]+1==A[i]) break;
    wt(if[i==N, 1, 2]);
  }
}

Current time: 2024年04月17日07時11分49秒
Last modified: 2019年11月10日19時18分44秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF595 CF_Div3_A
トップページに戻る

Logged in as: unknown user (not login)

ログイン: