Codeforces Round #477 (rated, Div. 1, based on VK Cup 2018 Round 3) A. Stairs and Elevators
题目题意:给出n层楼,每层m个房间,楼梯和电梯的分布这样的(1,x),(2,x)…,(n,x),1usingnamespacestd;constintinf=0x3f3f3f3f;constintmaxn=1e5+10;intn,m,c1,c2,v;inta1[maxn],a2[maxn];intmain(){while(~scanf("%d%d%d%d%d",&n,&m,&c1,&c2,&v))