10889 - The Lost Gift

All about problems in Volume 108. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

bijon
New poster
Posts: 18
Joined: Thu Jan 06, 2005 2:12 pm

Post by bijon » Sun Aug 28, 2005 9:40 am

Thanks Cho for your great response.

I do the same calculation in integer data type
and accepted now.

Thanks again.

Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Post by Dominik Michniewski » Tue Feb 07, 2006 10:45 am

I have to questions:

1. For input "1 0" output should be "0 3" ?
2. For input "3 1" output shouls be "0 5" ?

Best regards
DM

PS. I think that from math perspective such I/O is correct :)
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)

daveon
Experienced poster
Posts: 229
Joined: Tue Aug 31, 2004 2:41 am
Location: TORONTO, CANADA

Post by daveon » Sun Jul 02, 2006 9:26 pm

bijon wrote:I do the same calculation in integer data type
and accepted now.
Thanks again.
Using doubles seem to be okay. Just take input with long long for R and B. Also, when you find your roots, x1,x2, it means x1-1,x1+1,x2-1,x2+1 are also possible because of the rounding.

Post Reply

Return to “Volume 108 (10800-10899)”