为什么你谷的 Hack 不起作用
  • 板块灌水区
  • 楼主不想谈恋爱
  • 当前回复4
  • 已保存回复4
  • 发布时间2023/8/21 20:34
  • 上次更新2023/11/3 02:08:47
查看原帖
为什么你谷的 Hack 不起作用
247561
不想谈恋爱楼主2023/8/21 20:34

rt,题目打上了 “SPJ” 的标签,依照 https://help.luogu.com.cn/manual/luogu/problem/special-judge 写了 validator.cpp (Hydro 上下载的),但是评测记录还是没有 Hack 按钮(难道没开发?),然后那个 CF 赛制都鸽了多少年了awa


附:

checker.cpp

#include "testlib.h"
int main(int argc, char** argv) {
    registerTestlibCmd(argc, argv);
    long long a = inf.readLong();
    long long b = inf.readLong();
    long long ans = ouf.readLong();
    if (a + b == ans)
        quitf(_ok, "ok");
    else
        quitf(_wa, "wa");
    return 0;
}

validator.cpp

#include "testlib.h"
int main() {
    registerValidation();
    __int128_t a = inf.readLong();
    inf.readSpace();
    __int128_t b = inf.readLong();
    inf.readEof();
    __int128_t c = a + b;
    ensure(INT64_MIN <= c && c <= INT64_MAX);
    return 0;
}
2023/8/21 20:34
加载中...