Comments

Return of the MathForces

On errorgorn → I Love CF, 16 months ago
-20

I believe macaquedev is in charge of the basement now though, so we need his threat too for the full effect ^^

It's when someone uses a very high value for the upper limit of binary search (like 1e18). Then (turns/c[i])*a[i] could go very high, even above 64 bit long long. So to AC you could either use int128, or set a lower upper limit such as yours. Or use a lang like python :)

tomato

link has expired. Got a new link?

On bricked_ → Wish me luck!, 2 years ago
+5

Best of luck :)

Whoa that's the highest I've seen. A month was tough enough

Thanks. Got it :)

Could you please explain the idea behind problem E solution? I am not quite sure