信息学奥赛一本通(C++版)在线评测系统

本网站由成都石室中学、福建长乐一中信奥教练联合呈现。题库教师群:307432527,仅供教师加入
用户:
  密码:
  注册新用户
为网站的持续发展,本网站开通了捐赠支付宝帐号,详情请点击“关于“选项。 教师频道的功能开通了!!!

1.Q: Where does my program input from and output to?

A: Your program should always input from stdin (standard input) and output to stdout (standard output). For example, you can use scanf in C or cin in C++ to read, and printf in C or cout in C++ to write. User programs are NOT allowed to open and read from/write to any file.

More should be noted about I/O operations in C++. Due to their complex underlying implementation models, cin and cout are comparatively slower than scanf and printf. If a problem has huge input, using cin and cout will possibly lead to Time Limit Exceed.

2.Q: What are the compilers used by the judge? What should I notice when using these compliers?

A: GCC 4.3.3(Debian 4.3.3-5) are provided for G++/GCC.The compilation options are

gcc runid.c -o runid -O -fno-asm -Wall

g++ runid.cpp -o runid -O -fno-asm -Wall

Notice the difference between GCC 4.3.3 and other compilers to avoid Compile Error when using G++/GCC.

JDK 1.6 are provided for JAVA.The compilation option are

javac -g:none -Xlint Main.java

java -client Main

A Java program must be submitted as a single source file. Apart from complying with restrictions imposed on all submitted programs, it must start execution in a static method named main in a class named Main, otherwise Compile Error will be caused.

Java programs are allowed to run for THREE TIMES the time limit of GCC/G++, ans to use TWICE the memory limit of GCC/G++.

3.Q: What are the meanings of the judge's replies?

A: Here is a list of the judge's replies with their common abbreviations and exact meanings:

Judging/Waiting: Your program is being judged or waiting to be judged.

Rejudging: Your program is waiting to be rejudged.

Accepted (AC): Congratulations! Your program has produced the correct output!

Presentation Error (PE) : Output Format Error.Your output is the same as the standard output when all blank characters are ignored. Check your output for spaces, blank lines, etc. against the problem output specification.

Wrong Answer (WA) : Correct solution not reached for the inputs. The inputs and outputs that we use to test the programs are not public. Some problems with special judge may not reply "Presentation Error", replaced by "Wrong Answer".

Runtime Error (RE) : Your program failed during the execution (segmentation fault, floating point exception...). The exact cause is reported except Java.

Time Limit Exceeded (TLE) : Your program tried to run with too much CPU time. Java programs are allowed to run for THREE TIMES the time limit of GCC/G++.

Memory Limit Exceeded (MLE) : Your program tried to use more memory than the judge default settings. Java programs are allowed to use TWICE the memory limit of GCC/G++.

Output Limit Exceeded (OLE): Your program tried to write too much. This usually occurs if it goes into an infinite loop. The output limit is 32MB.

Compile Error (CE) : The compiler could not compile your program. Of course, warning messages are not error messages. Click the link at the judge reply to see the actual error message.

Restricted Function (RF): Your program tried to call restricted functions. For example, maybe you have tried to open a file which is forbidden on OJ. It may also caused by Runtime Error (e.g. maybe a pointer point to wrong funtion), just consider it as Runtime Error in this situation.

4.Q: What does the phrase "Special Judge" under the problem title means?

A: When a problem has multiple acceptable answers, a special judge program is needed. The special judge program uses the input data and some other information to check your program's output and returns the result to the judge.Be carefull that Format error may cause WA not PE for such problems.

5.Q:My program can get right answer for all data in the problem with my computer,but when I submit it,it get WA.Why?

A:After your source code has been submitted,judgers will use data which is not public to test your program.If you get wrong output for these data,Judgers will reply Wrong Answer.So your program must have some bugs,please check your program.

6.Q:Some problems which was Accepted when I submit it turn to be Wrong Answer,Why?

A:When judgers find some bugs in test data,they may rejudge all submits.But in a contest,problems never be rejudged from AC to WA.


本题库与《信息学奥赛一本通(C++版)》(科学技术文献出版社)配套,版权及相关事宜请与本书作者联系,本网站不作解答。
本网站属公益、非盈利性质,不涉及与书相关的商业活动,后期可能适当收取费用以支持网站的运行维护。
目前因个人编写水平有限,网站维护、网站安全方面及部分功能的开发尚不成熟,如遇疑问,请通过版主信箱联系。
感谢成都石室中学Wuvin、Qizy、Xehoth三位同学对本网站的支持,特别鸣谢北京师范大学ACM前校队易超、唐巧、洪涛同学。
版主信箱:ybt_mail@126.com