STL里的min和max函数是int类型的吧,不如自己写一个再提交看看。
by huhuhuhaha @ 2016-11-11 15:27:18
@[humiao](/space/show?uid=11287)
by huhuhuhaha @ 2016-11-11 15:29:44
int n,m,a,b,c,pre,now,x,y,visit=0;
int add[100010]={0};
全改成long long
另外@[Microsoft](/space/show?uid=19437) 可以百度看下
by ddd @ 2016-11-11 16:06:52
ans+=min((ll)c+(ll)b\*(ll)visit,(ll)a\*(ll)visit);
就过了
by humiao @ 2016-11-11 16:14:45
另外,谢楼上
by humiao @ 2016-11-11 16:16:16
@[ddd](/user/11171) 感谢,AC了
by traitrai_100 @ 2022-04-01 16:30:49
@[JRX2015U43](/user/19437) 感谢,我也是一样的问题。。。
by hyylearn @ 2023-04-24 18:59:20