diff --git a/algorithmic/problems/225/chk.cc b/algorithmic/problems/225/chk.cc index 161d8029d..97c916012 100644 --- a/algorithmic/problems/225/chk.cc +++ b/algorithmic/problems/225/chk.cc @@ -27,7 +27,9 @@ int main(int argc, char *argv[]) { } vector> requirements(q); for(int i = 0; i < q; i++){ - requirements[i] = make_pair(inf.readInt(), inf.readInt()); + int l = inf.readInt(); + int r = inf.readInt(); + requirements[i] = make_pair(l, r); } int cnt_e = ouf.readInt(n, 2200000); @@ -86,4 +88,4 @@ int main(int argc, char *argv[]) { double score = (double)(2.2 * 1000000 - cnt_e) / (2.2 * 1000000); quitp(score, "Ratio: %.4f, RatioUnbounded: %.4f", score, score); -} \ No newline at end of file +} diff --git a/algorithmic/problems/64/chk.cc b/algorithmic/problems/64/chk.cc index 6f76ce171..b2526b734 100644 --- a/algorithmic/problems/64/chk.cc +++ b/algorithmic/problems/64/chk.cc @@ -54,7 +54,7 @@ int main(int argc, char* argv[]) { // Read n and T (T may exceed 64-bit, read as token then parse u128) long long n_ll = inf.readLong(1LL, 1000LL, "n"); size_t n = (size_t)n_ll; - string Ttok = inf.readToken("T"); + string Ttok = inf.readToken(); u128 T; if (!parse_u128_str(Ttok, T)) { quitf(_fail, "Invalid T token: '%s'", Ttok.c_str()); @@ -110,9 +110,9 @@ int main(int argc, char* argv[]) { // Report partial score with details quitp((double)ratio, - "error=%s, sum=%s, T=%s, score=%.6Lf/100, RatioUnbounded=%.6Lf", + "error=%s, sum=%s, T=%s, score=%.6Lf/100, Ratio: %.6Lf, RatioUnbounded: %.6Lf", to_string_u128(err).c_str(), to_string_u128(sum).c_str(), to_string_u128(T).c_str(), - score100, unbounded_ratio); + score100, ratio, unbounded_ratio); }