为什么Special Judge不起作用?
  • 板块灌水区
  • 楼主Lijunzhuo
  • 当前回复3
  • 已保存回复4
  • 发布时间2023/12/19 21:52
  • 上次更新2023/12/20 13:24:04
查看原帖
为什么Special Judge不起作用?
734720
Lijunzhuo楼主2023/12/19 21:52

这道题

这是我的Special Judge代码:

#include "testlib.h"

int main(int argc, char* argv[]) {
    registerTestlibCmd(argc, argv);

    while(!ans.eof())
	{
        if(ouf.readString()!=ans.readString())
        	quitf(_wa, "The answer is wrong.");
    }
    quitf(_ok, "The answer is correct.");
    return 0;
}

cmd调试答案是对的,为什么这道题用Special Judge就不对了呢??????????????

评测记录

为什么我故意把最后一道题填上错误的答案后输出不是The answer is wrong.而是Wrong Answer.wrong answer On line 1 column 3, read 2, expected 3.了呢???难道这是luogu的bug吗???????

求给出解答。

2023/12/19 21:52
加载中...