GrizzlyGunner's blog

By GrizzlyGunner, history, 3 years ago, In English

Doubt in #730 Div. 2's Problem C (Need for Pink Slips):
Can someone please explain why 1e-10 works in the below line of a solution to Problem C, but 1e-9 doesn't?
Shouldn't they both work?

if(p * level * prob <= 1e-9) return;

The submissions: 1e-9, 1e-10.
Thanks.

Full text and comments »

  • Vote: I like it
  • +10
  • Vote: I do not like it