## Search found 93 matches

Tue Jan 20, 2004 6:12 am
Forum: Volume 1 (100-199)
Topic: 131 - The Psychic Poker Player
Replies: 34
Views: 5140
Dear El-idioto,

My AC program gives this answer for your input in line 211:

Hand: 5S 7H 6C 9H 8H Deck: 3H KS AC TD 6D Best hand: straight, while your input gives highest-card ( 5S 6C 7H 8H 9H is a straight, am I right ? )

I hope it helps you ...
Wed Jan 07, 2004 11:05 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13247
It is said on the problem that if 2 or more sequences exists that gave profit more than 1%, print the sequence of minimal length. For each table in the input file you must determine whether a sequence of exchanges exists that results in a profit of more than 1 percent (0.01). If a sequence exists yo...
Sat Dec 27, 2003 5:53 pm
Forum: Volume 1 (100-199)
Topic: 144 - Student Grants
Replies: 21
Views: 3483
are you sure that your program handle all the input ?

you should get input and output the answer until the input is 0 for both n and k ...

your program just get input 1 time ...

hope it helps
Sat Dec 20, 2003 8:45 am
Forum: Volume 1 (100-199)
Topic: 140 - Bandwidth
Replies: 49
Views: 7319

However, I didn't use greedy method, I made a silly mistake.
Thu Dec 18, 2003 4:13 pm
Forum: Volume 1 (100-199)
Topic: 137 - Polygons
Replies: 44
Views: 3664
No, you don't need to send it anymore ...

great thanks to you, junbin ...
Thu Dec 18, 2003 9:21 am
Forum: Volume 1 (100-199)
Topic: 125 - Numbering Paths
Replies: 56
Views: 5547
Thank you svelasqu for your explanation. I have got AC ...
Wed Dec 17, 2003 2:57 pm
Forum: Volume 1 (100-199)
Topic: 137 - Polygons
Replies: 44
Views: 3664
I finally got AC with satisfying run time ...

many thanks to junbin ... ( I really have done a silly mistake )
Wed Dec 17, 2003 11:34 am
Forum: Volume 1 (100-199)
Topic: 137 - Polygons
Replies: 44
Views: 3664
what is the maximum number of vertex possible ? At the first, I just set maximumVertex to 10 and unfortunately I didn't get "RTE" from the judge... can somebody clarify whether my I-O is correct ? input : [cpp] 1 0 0 1 0 0 4 37 1 80 19 97 93 20 82 5 66 46 76 93 11 86 18 63 31 53 8 18 1 92 2 96 67 95...
Wed Dec 17, 2003 11:19 am
Forum: Volume 1 (100-199)
Topic: 137 - Polygons
Replies: 44
Views: 3664
firstly, I want to thank you for your reply. It did help me a lot. I have fixed main bug in my code. But, afterall, my output doesn't match with yours. Moreover, I didn't expect 717.50 as the output for the third test case. because the answer should be 0.00. Is this a mistake or I had missed somethi...
Wed Dec 17, 2003 6:51 am
Forum: Volume 1 (100-199)
Topic: 137 - Polygons
Replies: 44
Views: 3664
I guess I have to bother you later again if this input doesn't show my mistake :( , I generate it randomly ... [cpp] 12 66 4 2 12 4 82 8 92 21 96 79 99 97 96 99 95 99 68 98 23 86 14 71 5 8 88 2 4 30 5 47 19 85 28 96 86 99 99 82 95 29 6 56 19 24 24 4 70 16 82 43 82 71 37 6 47 7 10 22 3 37 34 68 89 44...
Wed Dec 17, 2003 3:51 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 11542
input : 10
output : 1 4

pythagorean number from 1 to 10 :
3 , 4 , 5
6 , 8 , 10

1 is total of "triple pythagorean number that is relatively prime" form 1 to 10 ( 3 , 4 , 5 )
4 is total number that is not pythagorean number from 1 to 10 ( 1 , 2 , 7 and 9 )

Tue Dec 16, 2003 12:52 pm
Forum: Volume 1 (100-199)
Topic: 140 - Bandwidth
Replies: 49
Views: 7319

I got WA on this problem ...

Tue Dec 16, 2003 3:15 am
Forum: Volume 1 (100-199)
Topic: 137 - Polygons
Replies: 44
Views: 3664
Thank you junbin, for your explanation...

Can you give me more sample input and output ... ? I really need that
Mon Dec 15, 2003 11:15 am
Forum: Volume 1 (100-199)
Topic: 137 - Polygons
Replies: 44
Views: 3664
thank you Per for your input, I found 1 mistake in my code

but then, I see that for input 4 and 5, the polygon is not convex, and I cannot figure out why the answer is 13.50 for both of them ?