Search found 6 matches

by mitsiddharth
Sun Dec 30, 2007 2:05 pm
Forum: Volume 113 (11300-11399)
Topic: 11373 - Happy Birthday
Replies: 16
Views: 5470

Yes, my wrong code gets away with this !! 8)
But fails, when the larger piece is "really" large .. maybe becos of my logic to solve the problem.
by mitsiddharth
Sun Dec 30, 2007 1:52 pm
Forum: Bugs and suggestions
Topic: 11373 - Happy Birthday
Replies: 4
Views: 2666

11373 - Happy Birthday

Hi ,

I think the judge's input cases are not dealing with some situations where the area of the larger cake is greater than half the cake size.

I wrote a wrong solution initially and got it AC. Later , realised that my previous solution was wrong.

For example

10 1
0 9 10 9
0 9 10 0

For the ...
by mitsiddharth
Sun Dec 30, 2007 1:41 pm
Forum: Volume 113 (11300-11399)
Topic: 11373 - Happy Birthday
Replies: 16
Views: 5470

Are u sure ?? :o
Because , my AC code gives o/p for the following test case :

Code: Select all

10 1
0 9 10 9
0 9 10 0 
as

Code: Select all

75.71 2.40
which is wrong ... Thats y i asked ...
Please verify . The only way i cud have got away with that is when there is no such test case !!
by mitsiddharth
Sun Dec 30, 2007 1:32 pm
Forum: Volume 113 (11300-11399)
Topic: 11373 - Happy Birthday
Replies: 16
Views: 5470

And ... can u pls post the judge solutions for the above test cases if u dont mind ? :o
by mitsiddharth
Sun Dec 30, 2007 1:31 pm
Forum: Volume 113 (11300-11399)
Topic: 11373 - Happy Birthday
Replies: 16
Views: 5470

No , i dont thk u have !

I didnt handle such cases in contest time , and managed to get AC !! :wink:

Do u understand the kind of test cases i m trying to say??
by mitsiddharth
Sun Dec 30, 2007 1:23 pm
Forum: Volume 113 (11300-11399)
Topic: 11373 - Happy Birthday
Replies: 16
Views: 5470

Try this test case


10 1
0 9 10 9
0 9 10 0

The correct output must be :

277.68 2.40

But it seems as if there is no such test case in the judge's test cases.
ie , The area of the largest piece is never greater than half the area of the cake in any of judge's input. I thk these cases can also be included.
Please ...

Go to advanced search