## Search found 93 matches

Sun Dec 14, 2003 2:54 pm
Forum: Volume 1 (100-199)
Topic: 137 - Polygons
Replies: 44
Views: 3660

I got WA on this problem. I guess I need more sample input and output. I would be gratefully for any help.
Sun Dec 14, 2003 2:48 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 162
Views: 15548
the library iostream used by the judge's compiler doesn't support the printf function, so you have to include another library ( stdio.h )

I hope it helped you
Sun Dec 14, 2003 2:41 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 180031
why don't you read the sticky post about problem 100 first ?

the problem doesn't declare that a should be less than b, and I believe you didn't handle that in your source code.

Sat Nov 29, 2003 9:55 pm
Forum: Volume 1 (100-199)
Topic: 125 - Numbering Paths
Replies: 56
Views: 5544
got AC, thanks
Sat Nov 29, 2003 9:49 pm
Forum: Volume 1 (100-199)
Topic: 131 - The Psychic Poker Player
Replies: 34
Views: 5138
I've got AC, thanks
Sun Nov 23, 2003 3:46 pm
Forum: Volume 1 (100-199)
Topic: 131 - The Psychic Poker Player
Replies: 34
Views: 5138

### 131 : "The Psychic Poker Player"

I got WA

can somebody give me some sample input and output ?

In what condition cards can be considered as "straight-flush" ?
In what condition cards can be considered as "straight" ?

Tue Nov 18, 2003 11:48 am
Forum: Volume 1 (100-199)
Topic: 125 - Numbering Paths
Replies: 56
Views: 5544

Is there any special or tricky input to consider ? In all cities, intersections are numbered sequentially from 0 to the ``largest'' intersection It means that if there is 5 intersection, then those intersections would be 0 , 1 , 2 , 3 , and 4 right ? My idea to solve it is using a modified Floyd-War...
Tue Nov 18, 2003 11:46 am
Forum: Volume 1 (100-199)
Topic: 125 - Numbering Paths
Replies: 56
Views: 5544

Is there any special or tricky input to consider ? In all cities, intersections are numbered sequentially from 0 to the ``largest'' intersection It means that if there is 5 intersection, then those intersections would be 0 , 1 , 2 , 3 , and 4 right ? My idea to solve it is using a modified Floyd-War...
Sat Nov 08, 2003 10:40 am
Forum: Volume 1 (100-199)
Topic: 109 - SCUD Busters
Replies: 96
Views: 24185
can somebody check my code ... ??? thank you /*SCUD Busters*/ #include <math.h> #include <stdio.h> #define maxKingdom 20 #define maxSite 100 #define mathPI ( double ) 3.14159265358979323 struct vertex { int x , y ; } kingdomVertex[maxKingdom][maxSite+1] , temporary[maxSite+1] , missile ; int totalKi...
Fri Nov 07, 2003 9:11 am
Forum: Volume 1 (100-199)
Topic: 115 - Climbing Trees
Replies: 30
Views: 11103

I think the parent-child relation will constuct a tree, so that a node will have only 1 parent. So perhaps I should just build a vector table to store names and their parents. Am I right ?

Fri Nov 07, 2003 4:51 am
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 7338

### 114 - Simulation Wizardry - Getting Confused

The ball uses one unit of lifetime for each grid step it moves. It also uses some units of lifetime for each bumper or wall that it hits. It is said that the ball lose one unit of lifetime only if it move one grid step right ???? so can anybody tell me what will be the input for this ??? 3 3 0 4 2 1...
Fri Nov 07, 2003 4:47 am
Forum: Volume 1 (100-199)
Topic: 109 - SCUD Busters
Replies: 96
Views: 24185

### 109 - SCUD Buster - WA

I got WA on this problem and I have tried all input in this forum, and it looked fine.

can anybody post more input, output please ???
Mon Nov 03, 2003 7:35 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19480
Finally, I got an AC ...

thank you for the inputs and outputs....

Actually, I was confused by the compiler.

double a = 4.0000000000, b ;

b = floor ( a ) ;

printf ( "%lf" , b ) ;

the result is 3.00000 ????
Mon Nov 03, 2003 6:59 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19480
Does floating point height is a valid height ???

I don't get it why "7 199" should be the output for input "100 1"

If I count :
100 <-- first height
50
25
12.5 <-- does it valid ???
6.25
3.125
Fri Oct 31, 2003 12:28 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19480
If so, I couldn't figure it out why my program keep gives me WA .... please help #include <math.h> #include <stdio.h> #define maxLayer 32 int main ( void ) { unsigned long initialHeight , numOfSmallestCat , numOfSmallerCat , layer , result1 , result2 , i ; double catPerHat , epsilon = ( double ) 0.0...