Codeforces Global Round 12 B問題 - Balls of Steel

Source

Codeforces Global Round 12 B問題 (750pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20201206-1)のコード

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

//no-unlocked
int N, K, X[100], Y[100];
{
  REP(rd_int()){
    rd(N,K,(X,Y)(N));
    rep(i,N){
      rep(j,N) if(abs(X[i]-X[j]) + abs(Y[i]-Y[j]) > K) break_continue;
      wt(1), break_continue;
    }
    wt(-1);
  }
}

Current time: 2024年04月24日17時53分42秒
Last modified: 2020年12月11日22時51分40秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces Codeforces_Global_Round_12
トップページに戻る

Logged in as: unknown user (not login)

ログイン: