ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1468. Fraction

I have WA#1
Posted by Dembel {AESC USU} 25 Dec 2006 11:40
for input "10000 9999 10" my prog gives "1.(0001)".
But I have WA#1.
help me!

Edited by author 25.12.2006 11:40
Re: I have WA#1
Posted by Sandro (USU) 25 Dec 2006 21:22
And what about 1000 9999 10 ?

Good luck!
Fixed.
Posted by Dembel {AESC USU} 25 Dec 2006 21:56
Correct answer is 0.1(0001),isn't it?

Thank you. but I have WA#1.
Please give me some test or hint

Edited by author 25.12.2006 22:02
What answer
Posted by Dembel {AESC USU} 25 Dec 2006 22:17
Input
9800 9999 10
0 0
output
0.98(0098)
or
0.9(8009)
is it true?
Posted by Dembel {AESC USU} 25 Dec 2006 23:22
input
4 4095 4
1 9999 10
10 9999 10
100 9999 10
1000 9999 10
10000 9999 10
9800 9999 10
3 2 8
0 0
output
0.00001(000001)
0.(0001)
0.001(0001)
0.01(0001)
0.1(0001)
1.(0001)
0.9(8009)
1.4
this output is correct,isn't it?
Re: What answer
Posted by Sandro (USU) 25 Dec 2006 23:31
Correct answer for "1000 9999 10" is 0.(1000), not 0.1(0001). In another example 0.(9800) is correct, not 0.98(0098).
Re: What answer


Edited by author 25.12.2006 23:41
Re: is it true?
Correct output
0.(000010)
0.(0001)
0.(0010)
0.(0100)
0.(1000)
1.(0001)
0.(9800)
1.4
Re: What answer
Posted by Dembel {AESC USU} 25 Dec 2006 23:40
why?
'The output must not contain insignificant zeros.'
0.(1000) contain 3 zeroes on the end, don't it?

sorry bad English.

Edited by author 25.12.2006 23:42
Re: What answer
Posted by Dembel {AESC USU} 25 Dec 2006 23:41
Thank you I got AC.
Re: is it true?
Posted by Varun Kumar(Fundu) 30 Mar 2009 21:37
I have checked all the anwers in this post all are working fine and sample input is working fine still I got WA1??

Any idea for test1...
please provide some rigourous test
Re: is it true?
Posted by kaa..........ai 12 Jan 2015 22:27
Thank you!AC now!

Edited by author 12.01.2015 23:19