10499 - The Land of Justice
Moderator: Board moderators
-
- New poster
- Posts: 38
- Joined: Thu Mar 27, 2003 9:12 pm
- Location: Aguascalientes, Mexico
- Contact:
10499 - The Land of Justice
I don't quite understand this problem. For what I understood, the answer should always be 50%!
Could someone please explain me?
Thanks!
Could someone please explain me?
Thanks!
There are 10 kind of people on this world: those who understand binary and those who don't!
-
- Experienced poster
- Posts: 193
- Joined: Thu Sep 19, 2002 6:39 am
- Location: Indonesia
- Contact:
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-
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-
The fear of the LORD is the beginning of knowledge (Proverbs 1:7).
-
- Learning poster
- Posts: 93
- Joined: Sun Jan 12, 2003 3:30 pm
10499 - The Land of Justice
Is my formula correct.... ?
output = n / 4 ;
where n is number of piece ...
please help ... !
output = n / 4 ;
where n is number of piece ...
please help ... !
-
- Learning poster
- Posts: 93
- Joined: Sun Jan 12, 2003 3:30 pm
Read previous posts:
http://acm.uva.es/board/viewtopic.php?t ... ight=10499
When talking about "dividing the sphere", consider the top view......
http://acm.uva.es/board/viewtopic.php?t ... ight=10499
When talking about "dividing the sphere", consider the top view......
7th Contest of Newbies
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
Mind the variable type you use...
Recall that 0 < N < 2^31
P.S. Remove your formula above, plz...
Recall that 0 < N < 2^31
P.S. Remove your formula above, plz...
Last edited by Observer on Sat Jun 21, 2003 11:11 am, edited 1 time in total.
7th Contest of Newbies
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
-
- Experienced poster
- Posts: 146
- Joined: Sat Apr 26, 2003 2:51 am
-
- Learning poster
- Posts: 90
- Joined: Sat Feb 15, 2003 1:39 am
- Location: Paris, France
- Contact:
10499 : the land of justice
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 ?
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 ?
Not AC yet AC at last
-
- Learning poster
- Posts: 90
- Joined: Sat Feb 15, 2003 1:39 am
- Location: Paris, France
- Contact:
I use this formula :
Bad forumla, removed because it was so stupid
Last edited by bery olivier on Sat Nov 01, 2003 9:48 pm, edited 1 time in total.
Not AC yet AC at last
-
- Learning poster
- Posts: 90
- Joined: Sat Feb 15, 2003 1:39 am
- Location: Paris, France
- Contact: