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

18 lines
383 B
C++
Raw Normal View History

2022-05-28 23:47:12 +00:00
#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!");
}