Search found 1332 matches

by Jan
Wed Jul 06, 2005 3:07 pm
Forum: Volume 3 (300-399)
Topic: 339 - SameGame Simulation
Replies: 26
Views: 11643

Can anybody send me some test cases....

Thanks.
by Jan
Wed Jul 06, 2005 2:45 am
Forum: Volume 3 (300-399)
Topic: 338 - Long Multiplication
Replies: 59
Views: 7303

I can't figure out your actual output, because you need to print some spaces for this problem and you have to handle them carefully. I can give you the actual output... Output: 12345 862 ----- 24690 74070 98760 -------- 10641390 100003 100010 ------ 100003 100003 ----------- 10001300030 345 3455 ---...
by Jan
Tue Jul 05, 2005 10:24 pm
Forum: Volume 2 (200-299)
Topic: 202 - Repeating Decimals
Replies: 82
Views: 10930

You should try these inputs, Input: 2772 883 22 7 678 119 1011 2123 1 303 1 300 Output: 2772/883 = 3.(13929784824462061155152887882219705549263873159682...) 441 = number of digits in repeating cycle 22/7 = 3.(142857) 6 = number of digits in repeating cycle 678/119 = 5.(697478991596638655462184873949...
by Jan
Mon Jul 04, 2005 6:57 am
Forum: Volume 3 (300-399)
Topic: 338 - Long Multiplication
Replies: 59
Views: 7303

Is there any leading zeroes??

Test cases like

Code: Select all

001 87
002 002
Can anyone tell me the output of thiese inputs?
Thankx...
by Jan
Mon Jul 04, 2005 2:21 am
Forum: Volume 1 (100-199)
Topic: 133 - The Dole Queue
Replies: 42
Views: 5713

I think jaracz is right. And KoolKris you should know that almost 50% of the submissions in this problem are accepted. Actually the problem description is like this: Suppose there are 10 people: It means N = 10 4 3 5 2 6 1 7 10 8 9 And one official is counting counter-clockwise like 1, 2, 3, 4 ... a...
by Jan
Sat Jul 02, 2005 6:43 am
Forum: Volume 7 (700-799)
Topic: 790 - Head Judge Headache
Replies: 49
Views: 14694

790 - Head Judge Headache

Hey, I have solved it but got several wrong answers. And I have some question on this. 1. The output of consecutive cases should be seperated by blank line or not? 2. The output pattern. The numbers are printed in left justified form or not? 3. I considered that the input terminates with a blank lin...
by Jan
Fri Jul 01, 2005 11:41 pm
Forum: Volume 7 (700-799)
Topic: 703 - Triple Ties: The Organizer's Nightmare
Replies: 3
Views: 3680

Your output is correct. Your code is quite complex. But I can give you some hint. Algorithm 1. Take the input. 2. Use three nested loops.... for( i=1;i<=n;i++ ) for(j=1;j<=n;j++ ) for(k=1;k<=n;k++) { if(((i>j&&j>k)||(i<j&&j<k))&&(all i,j; j,k; and k,i are 1)) { store i,j,k; } else if((i<j&&j<k) && a...
by Jan
Wed Jun 29, 2005 4:00 am
Forum: Volume 4 (400-499)
Topic: 434 - Matty's Blocks
Replies: 13
Views: 3585

434 - Matty's Blocks

Can anyone send me some test cases on this problem...
I cant find why I m getting WA. :-?

Thans.
by Jan
Wed Jun 29, 2005 2:12 am
Forum: Volume 2 (200-299)
Topic: 218 - Moth Eradication
Replies: 60
Views: 10586

218 - Moth Eradication

I have getting WA on problem 218. :-?

Can someone give me some test cases??

Thanks in advance.
by Jan
Fri Jun 24, 2005 11:08 pm
Forum: Volume 8 (800-899)
Topic: 874 - 2D Representations
Replies: 2
Views: 1917

874 - 2D Representations

Can anyone explain the run length code of this problem.
I can't figure out how to generate this. :-?
by Jan
Fri Jun 24, 2005 8:36 pm
Forum: Volume 8 (800-899)
Topic: 855 - Lunch in Grid City
Replies: 41
Views: 19271

I got Accepted after several wrong answers. And finally I found the bug in my code. My algorithm is simple.... 1. First sort the streets. 2. Sort the avenues. 3. Suppose they are in an array p[][2], p[][0] is the street number, p[][1] is the avenue number starting from 1 to n (n is the total number)...
by Jan
Wed Jun 22, 2005 11:16 pm
Forum: Volume 8 (800-899)
Topic: 824 - Coast Tracker
Replies: 8
Views: 6132

Did u consider this:- the robot will always start its job in a square of the coast, with the sea at its right; therefore, the coast will be tracked in a counter clockwise direction I think u should test these inputs Input: 21 27 4 21 28 1 20 28 1 20 27 0 20 26 1 21 26 1 22 26 0 22 27 1 22 28 0 21 27...

Go to advanced search