2016级计算机C++助教工作(6)OJ上各种返回结果以及代表意思和可能涉及的原因

本文介绍了在线判题系统中常见的返回结果,如Accepted、Presentation Error、Wrong Answer、Runtime Error等,并针对每种情况解释可能的问题及解决方法,包括输出格式错误、运行时错误、超时和内存限制等。同时,提到了编译错误和使用非法函数的情况,以及一些提交源代码时的快捷键提示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. judge上返回结果与可能的问题、解决方法

内容来源:http://acm.tju.edu.cn/toj/faq.html

Q: What is the meaning of the judge's reply XXXXX?
A: Here is a list of the judge's replies and their meaning:

Received : The judge system has received your solution, usually you just need to wait a minute and your solution will be judged.

收到程序,等待判题程序判题即可。

Accepted (AC) : OK! Your program is correct!
通过。

Presentation Error (PE) : Output Format Error. Your output format is not exactly the same as the judge's output, although your answer to the problem is correct. 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".

得到的答案错了。再思考思考。也有可能格式不对,比如没有在应该空格的地方输出空格,也有可能导致这个错误。

Runt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

GDRetop

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值