Grakn Forces 2020 B問題 (1000pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N, K, A[100];
{
REP(rd_int()){
int d;
rd(N,K,A(N));
d = Distinct(N,A);
if(d == 1) wt(1), continue;
if(K == 1) wt(-1), continue;
wt((d-1) /+ (K-1));
}
}
Current time: 2024年04月20日07時28分03秒
Last modified: 2020年10月03日18時44分17秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る
Logged in as: unknown user (not login)