10499 - The Land of Justice

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

Moderator: Board moderators

User avatar
Pier
New poster
Posts: 38
Joined: Thu Mar 27, 2003 9:12 pm
Location: Aguascalientes, Mexico
Contact:

10499 - The Land of Justice

Post by Pier » Wed May 28, 2003 2:00 am

I don't quite understand this problem. For what I understood, the answer should always be 50%!

Could someone please explain me?



Thanks!
There are 10 kind of people on this world: those who understand binary and those who don't!

turuthok
Experienced poster
Posts: 193
Joined: Thu Sep 19, 2002 6:39 am
Location: Indonesia
Contact:

Post by turuthok » Wed May 28, 2003 2:30 am

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-
The fear of the LORD is the beginning of knowledge (Proverbs 1:7).

Almost Human
Learning poster
Posts: 93
Joined: Sun Jan 12, 2003 3:30 pm

10499 - The Land of Justice

Post by Almost Human » Tue Jun 17, 2003 9:55 am

Is my formula correct.... ?

output = n / 4 ;

where n is number of piece ...

please help ... !

turuthok
Experienced poster
Posts: 193
Joined: Thu Sep 19, 2002 6:39 am
Location: Indonesia
Contact:

Post by turuthok » Tue Jun 17, 2003 10:12 am

My AC-ed solution didn't use that formula ... and I had to make one special case for one input.

-turuthok-
The fear of the LORD is the beginning of knowledge (Proverbs 1:7).

Almost Human
Learning poster
Posts: 93
Joined: Sun Jan 12, 2003 3:30 pm

Post by Almost Human » Tue Jun 17, 2003 10:20 am

what kind of input is it ... ???

please help ...

thx a lot ....

is my formula correct, actualy ... ?

eloha
New poster
Posts: 38
Joined: Thu Oct 31, 2002 8:24 am
Location: Taiwan

Post by eloha » Fri Jun 20, 2003 5:40 am

Can anyone tell me what the problem is talking about?

Thanks.

Observer
Guru
Posts: 570
Joined: Sat May 10, 2003 4:20 am
Location: Hong Kong

Post by Observer » Fri Jun 20, 2003 7:20 am

Read previous posts:
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

Faizur
New poster
Posts: 39
Joined: Fri Jun 06, 2003 3:04 pm

Post by Faizur » Fri Jun 20, 2003 9:56 pm

i also got wrong answer in 10499???
pls help....
Last edited by Faizur on Sat Jun 21, 2003 8:14 pm, edited 1 time in total.

Observer
Guru
Posts: 570
Joined: Sat May 10, 2003 4:20 am
Location: Hong Kong

Post by Observer » Sat Jun 21, 2003 3:08 am

Mind the variable type you use...

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

Dmytro Chernysh
Experienced poster
Posts: 146
Joined: Sat Apr 26, 2003 2:51 am

Post by Dmytro Chernysh » Sat Jun 21, 2003 4:23 am

The formula is correct.
But be very careful with that. Use long long in C and extended in Pascal.

Faizur
New poster
Posts: 39
Joined: Fri Jun 06, 2003 3:04 pm

Post by Faizur » Sat Jun 21, 2003 8:27 pm

At last i get it accepted :D .
Thanx all for help.....

bery olivier
Learning poster
Posts: 90
Joined: Sat Feb 15, 2003 1:39 am
Location: Paris, France
Contact:

10499 : the land of justice

Post by bery olivier » Thu Oct 30, 2003 2:49 am

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 ?
Not AC yet Image AC at last Image

User avatar
shamim
A great helper
Posts: 498
Joined: Mon Dec 30, 2002 10:10 am
Location: Bozeman, Montana, USA

Post by shamim » Thu Oct 30, 2003 8:51 am

Explain the method you used, or submit the portion of your code that generates the answer. Then I may be able to help.

bery olivier
Learning poster
Posts: 90
Joined: Sat Feb 15, 2003 1:39 am
Location: Paris, France
Contact:

Post by bery olivier » Thu Oct 30, 2003 11:34 am

I use this formula :
Bad forumla, removed because it was so stupid
:oops:
Last edited by bery olivier on Sat Nov 01, 2003 9:48 pm, edited 1 time in total.
Not AC yet Image AC at last Image

bery olivier
Learning poster
Posts: 90
Joined: Sat Feb 15, 2003 1:39 am
Location: Paris, France
Contact:

Post by bery olivier » Thu Oct 30, 2003 2:04 pm

Ok, I guess I missundertood the problem. What is the meaning of the percentage requested ?
Not AC yet Image AC at last Image

Post Reply

Return to “Volume 104 (10400-10499)”