Codeforces Round #681 (based on VK Cup 2019-2020 - Final) DIV1 A問題 (500pt)
Codeforces Round #681 (based on VK Cup 2019-2020 - Final) DIV2 D問題 (2000pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int N, A[1d5];
{
REP(rd_int()){
int x = int_inf, y = 0;
rd(N,A(N));
rep(i,N){
x <?= A[i] - y;
y >?= A[i] - x;
if(x < 0) wt("NO"), break_continue;
}
wt("YES");
}
}
Current time: 2024年04月24日14時55分47秒
Last modified: 2020年11月03日08時10分29秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF681 CF_DIV1_A CF_DIV2_D
トップページに戻る
Logged in as: unknown user (not login)