Codeforces Round #665 DIV2 C問題 - Mere Array

Source

Codeforces Round #665 DIV2 C問題 (1500pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20200916-1)のコード

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

//no-unlocked
int N, A[1d5];
int b[1d5];
{
  REP(rd_int()){
    rd(N,A(N));
    rep(i,N) b[i] = A[i];
    sortA(N, b);
    rep(i,N) if(!(A[i] % b[0] == 0 || A[i] == b[i])) wt("NO"), break_continue;
    wt("YES");
  }
}

Current time: 2024年03月28日19時52分14秒
Last modified: 2020年09月19日08時53分54秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF665 CF_Div2_C
トップページに戻る

Logged in as: unknown user (not login)

ログイン: