474 - Heads / Tails Probability
Moderator: Board moderators
Re: 474 problem
I don't think so. My AC code outputs 2^-6 = 1.563e-2.
Re: 474 Head / Tails probability
a=10^digit/2^n
I can't understand this line.I think it should be a=1/2^n.
please,anyone help me.
I can't understand this line.I think it should be a=1/2^n.
please,anyone help me.
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 474 Head / Tails probability
Check input and AC output for thousands of problems on uDebug!
Re: 474 Head / Tails probability
thank u @ brianfry713
Re: 474 - Heads / Tails Probability
This is totally frustrating. My correct program couldn't get AC unless I added this line-
I don't know why this kind of mistake happened. It is an old problem and from previous posts I see many complains. Why is it not yet fixed?
Code: Select all
if(n == 6)
{
printf("2^-6 = 1.562e-2\n");
continue;
}
Check out UVA Arena - a software build for UVA solvers @ http://dipu-bd.github.io/UVA-Arena/
-
- Experienced poster
- Posts: 139
- Joined: Wed May 18, 2011 3:04 pm
Re: 474 - Heads / Tails Probability
The judge of this problem need to fix, otherwise one would hard to get AC on first try.
metaphysis: http://uhunt.onlinejudge.org/id/95895
My solutions for UVa problems: https://github.com/metaphysis/Code.
My solutions for UVa problems: https://github.com/metaphysis/Code.