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

说一个导致oj判断错误的案例。

Posted by hlsing at 2014-05-04 20:53:56 on Problem 1003
这种水题,提交之后,各种wa,我就纳闷了,后来把代码中以下几行代码注释了就好了:
FILE *fp;
fp=open("G:/in.txt","r");
fclose(fp);

猜测可能fp命名和oj冲突,oj也是用文件输入的,注释之后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