Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
血与泪的教训啊!!读入的时候要分开读。。RT 原代码为: for (j=1;j<=k;j++) cin>>t>>cost[t][i]; discuss里面所有数据都测过了,狂WA,WA到死 后经一神人指点,改为: for (j=1;j<=k;j++) { cin>>t; cin>>cost[t][i]; } 瞬间AC。。。。。。。 以后还是不要偷懒乖乖写scanf吧,唉。。10次才AC,各种囧 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator