|
|
this test may help you: 4 0 0 1 0 2 0 3 0 2 1 2 1 0 1 0 1 0 1 19 1 0 ans: 2 0 "If there are several such propositions, output the one with the maximal number." In updating: "vx = (avx * 1ll * (vx + 10) + bvx) % 21 - 10" make sure you use real value of vx, not that divided by gcd(vx, vy); What is test 15? What meaning in this problem "mod"? -1 mod 10 = 9 or -1 mod 10 = 10 ? OK. Accepted. a "mod" b = r, where a=bq+r, 0<=r<b Edited by author 16.05.2018 01:18 Any hints why? At the end of the contest I send my dummy solution (direct simulation) and it gives WA... Nevermind, I was apparently solving a different problem... |
|
|