0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-26 21:31:59 +00:00
OI-codes/S2OJ/1167/data/chk.cpp

19 lines
426 B (Stored with Git LFS)
C++

#include <bits/stdc++.h>
#include "testlib.h"
using ui = unsigned int;
signed main(int argc, char** argv) {
registerTestlibCmd(argc, argv);
int n = inf.readInt();
for (int i = 1; i <= n; ++i) {
ui x = ui(ouf.readLong()), y = ui(ouf.readLong());
if (x != y) {
quitp(1.0 * (i - 1) / n, "jury's anwser is %u, but your answer is %u", x, y);
}
}
quitf(_ok, "Accept!");
}