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

Re:1061问题求救,不知道wrong在何处。第一次提交可能规则不懂,望大牛们指教。。。

Posted by tangwangyang at 2006-05-12 21:05:35
In Reply To:Re:1061问题求救,不知道wrong在何处。第一次提交可能规则不懂,望大牛们指教。。。 Posted by:tangwangyang at 2006-05-12 21:01:33
可能是在C++中使用cin,cout等对象需要在头部包含
#include <iostream>
原来的写法不正规。
同时应当再写上
using namespace std;

另外,不用(也非常危险)输出那些错误信息。有可能导致presentation errer或者wrong answer.
只知道这么多。如果还有问题可能是还需注意的一些细节,不排除算法错误。

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