SPJ求助
  • 板块学术版
  • 楼主BlackPanda
  • 当前回复3
  • 已保存回复3
  • 发布时间2023/5/24 23:43
  • 上次更新2023/10/23 14:49:56
查看原帖
SPJ求助
486799
BlackPanda楼主2023/5/24 23:43

题面:

有个程序在所有输出NO的点上输出为:

NO
YES
.....
.....

spj会判为 PE Extra information in the output file

我想使这个程序跑过去,如何改spj??

部分spj

	string a1 = ans.readString();
	string res = ouf.readString();
	if (res != "YES" && res != "NO")
	{
		quitf(_wa, "answer must be \"YES\" or \"NO\".");	
	}
	if (a1 != res)
	{
		quitf(_wa, "answer is wrong.");
	}
	if (res == "NO\n" || res == "NO")
	{
		quitf(_ok, "answer is accepted.");
	}
	int n = inf.readInt();
    ....
    ....
    ....
2023/5/24 23:43
加载中...