Search found 9 matches
- Sat Dec 26, 2009 12:49 am
- Forum: Volume 103 (10300-10399)
- Topic: 10315 - Poker Hands
- Replies: 63
- Views: 29364
Re: 10315 - Poker Hands
Ivan, they match again. Could you take a look at my code please? It is a few topics above. I'm really stuck. Thanks.
- Thu Dec 24, 2009 3:03 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10315 - Poker Hands
- Replies: 63
- Views: 29364
Re: 10315 - Poker Hands
Ivan, I tested my program with your input and get the same output. I posted my code here before you. I've already tested my program with all inputs on this topic and they match. If someone can help me I appreciate.
- Thu Dec 17, 2009 3:42 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10167 - Birthday Cake
- Replies: 16
- Views: 7732
Re: 10167 - Birthday Cake
JINX, I used the same ideia than you and got AC. I'm not sure if your way to generate the random numbers is correct. I think a more easy way is: a=-500+(rand()%1001); b=-500+(rand()%1001); And I think that the break condition should be: if(count1==n && count2==n) break; I hope it helps. Sorr...
- Sat Dec 12, 2009 8:57 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10180 - Rope Crisis in Ropeland!
- Replies: 39
- Views: 22402
Re: 10180 - Rope Crisis in Ropeland !
My problem is the opposite of the guy above. I got AC at programming challenges and WA at UVA. My program works for all test cases on this topic except one (only one of the test cases posted by jdmetz), in which my program prints 1#IO (I think it is Not a Number - NaN). Therefore, I think that the p...
- Fri Sep 18, 2009 3:36 am
- Forum: Volume 103 (10300-10399)
- Topic: 10315 - Poker Hands
- Replies: 63
- Views: 29364
Re: 10315 - Poker Hands
Hi, I don't now why I am getting WA on this problem. My code passed in all test cases on this forum and I have a friend that get AC on this problem and I made 30 test cases and my code and the code of him had the same result. Both codes do practically the same thing but in different ways. Its a big ...
- Fri Sep 18, 2009 2:50 am
- Forum: Volume 100 (10000-10099)
- Topic: 10092 - The Problem with the Problem Setter
- Replies: 31
- Views: 13476
Re: 10092 - The Problem with the Problem Setter
Hi, I solved the "UVA 10249 - The Grand Dinner" using a greddy algorithm and I think that this problem can be solved using a greddy algorithm too. I developed one and I can't see bugs on it. Can anybody tell me why my code fail or give me a test case where it fails? . Thanks and sorry for ...
- Thu Sep 10, 2009 3:58 am
- Forum: Volume 101 (10100-10199)
- Topic: 10150 - Doublets
- Replies: 46
- Views: 18093
Re: 10150 - Doublets
Oh man, a really thank your help. I think that my program was wrong because I don't considered a '\n' in the end of the last test case. But the important is that I get AC with your little modification, thanks.
- Wed Sep 09, 2009 4:55 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10150 - Doublets
- Replies: 46
- Views: 18093
Re: 10150 - Doublets
But my problem isn't time. My code runs in 2 secs. I get WA not TLE. Can you post some critical test cases please?
- Wed Sep 09, 2009 3:41 am
- Forum: Volume 101 (10100-10199)
- Topic: 10150 - Doublets
- Replies: 46
- Views: 18093
Re: 10150 - Doublets
Differently of others people on this post, I have been getting WA insted of TL on this problem and I have built an explicit graph and tried to find a path using bfs with the index of the words. My code passed on the test cases that I found here and others that I simulate on uvatoolkit.com. Can anybo...