Open buhuiqinicheng opened 4 months ago
录题的时候用官方提供的spj代码,提交答案时全部system error
#include <bits/stdc++.h>
#include "testlib.h"
using namespace std;
long long sum = 0;
int main(int argc, char* argv[])
{
registerTestlibCmd(argc, argv);
int t = inf.readInt();
long long n, m;
for(int cas=1;cas<=t;++cas) {
//setTestCase(cas);
n=inf.readLong();
m=ouf.readLong(-1ll,1'000'000'000'000'000'000,"m");
quitif(m==0,_wa,"m != 0");
if((n & (n - 1)) == 0) {
if(m != -1) quitf(_wa,"wa 1");
}
else {
if(__gcd(n, m) != (n ^ m)) quitf(_wa,"wa 2");
}
}
quitf(_ok, "all ok!");
return 0;
}
同样的问题,提交代码,不管是c++还是python都提示system error。有没有解决的?
使用特判spj的时候,提交答案显示system error