Codeforces 658A B C || VK Cup 2016 - Round 1 (Div. 2 Edition) A B C题解
切了一波水题A水#include
#include
#include
usingnamespacestd;
intmain()
{
intn,c,p[55],t[55];
intsum1=0,sum2=0;
scanf("%d%d",&n,&c);
for(inti=0;i=0;i--)
{
tie+=t[i];
sum2+=max(0,p[i]-tie*c);
}
if(sum1>sum2)