Page 1 of 4

10499 - The Land of Justice

Posted: Wed May 28, 2003 2:00 am
by Pier
I don't quite understand this problem. For what I understood, the answer should always be 50%!

Could someone please explain me?



Thanks!

Posted: Wed May 28, 2003 2:30 am
by turuthok
You misunderstood the problem ...

You have to find the initial-cost of the whole sphere using a very well-known formula.

Then, since we divide it into n parts, the sell-value will be n x sell-value of each part. The sell-value of each part is also pretty obvious, just be careful on certain input(s).

Now since you got sell-value of the sphere and also the initial-cost ... then it's easy to find the profit. If you're on the right track, you will come down to a very very simple formula ...

-turuthok-

10499 - The Land of Justice

Posted: Tue Jun 17, 2003 9:55 am
by Almost Human
Is my formula correct.... ?

output = n / 4 ;

where n is number of piece ...

please help ... !

Posted: Tue Jun 17, 2003 10:12 am
by turuthok
My AC-ed solution didn't use that formula ... and I had to make one special case for one input.

-turuthok-

Posted: Tue Jun 17, 2003 10:20 am
by Almost Human
what kind of input is it ... ???

please help ...

thx a lot ....

is my formula correct, actualy ... ?

Posted: Fri Jun 20, 2003 5:40 am
by eloha
Can anyone tell me what the problem is talking about?

Thanks.

Posted: Fri Jun 20, 2003 7:20 am
by Observer
Read previous posts:
http://acm.uva.es/board/viewtopic.php?t ... ight=10499

When talking about "dividing the sphere", consider the top view......

Posted: Fri Jun 20, 2003 9:56 pm
by Faizur
i also got wrong answer in 10499???
pls help....

Posted: Sat Jun 21, 2003 3:08 am
by Observer
Mind the variable type you use...

Recall that 0 < N < 2^31

P.S. Remove your formula above, plz...

Posted: Sat Jun 21, 2003 4:23 am
by Dmytro Chernysh
The formula is correct.
But be very careful with that. Use long long in C and extended in Pascal.

Posted: Sat Jun 21, 2003 8:27 pm
by Faizur
At last i get it accepted :D .
Thanx all for help.....

10499 : the land of justice

Posted: Thu Oct 30, 2003 2:49 am
by bery olivier
i tried to solve the problem 10499 too many times. I'm gonna be very angry.

I think I got the right formula and I tested different things like handle the 100% output and over things.

Can anyone give me a hint please ?

Posted: Thu Oct 30, 2003 8:51 am
by shamim
Explain the method you used, or submit the portion of your code that generates the answer. Then I may be able to help.

Posted: Thu Oct 30, 2003 11:34 am
by bery olivier
I use this formula :
Bad forumla, removed because it was so stupid
:oops:

Posted: Thu Oct 30, 2003 2:04 pm
by bery olivier
Ok, I guess I missundertood the problem. What is the meaning of the percentage requested ?