Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

血与泪的教训啊!!读入的时候要分开读。。

Posted by wlkilluajay at 2011-09-07 16:00:21 on Problem 1062
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator