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.
Полный текст и комментарии »