Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System Error #115

Open
buhuiqinicheng opened this issue Jul 20, 2024 · 2 comments
Open

System Error #115

buhuiqinicheng opened this issue Jul 20, 2024 · 2 comments

Comments

@buhuiqinicheng
Copy link

使用特判spj的时候,提交答案显示system error

@buhuiqinicheng
Copy link
Author

buhuiqinicheng commented Jul 21, 2024

录题的时候用官方提供的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;
}

@ciao1
Copy link

ciao1 commented Oct 7, 2024

同样的问题,提交代码,不管是c++还是python都提示system error。有没有解决的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants