0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-21 08:25:24 +00:00
OI-codes/S2OJ/1167/data/chk.cpp
2022-05-29 07:47:12 +08:00

18 lines
383 B
C++

#include "testlib.h"
#include <bits/stdc++.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!");
}