Search found 5 matches

by Sharkest
Tue May 01, 2012 12:35 am
Forum: Volume 103 (10300-10399)
Topic: 10315 - Poker Hands
Replies: 63
Views: 29515

Re: 10315 - Poker Hands

Still getting WA.

added a printf("\n"); after while(validInput != EOF);
by Sharkest
Mon Apr 30, 2012 9:07 am
Forum: Volume 103 (10300-10399)
Topic: 10315 - Poker Hands
Replies: 63
Views: 29515

Re: 10315 - Poker Hands

Does the judge really only use 1 deck? My code is generating the correct output for the test cases except for the ones which have more than one deck in it.Getting WA. My code: #include <iostream> #include <stdio.h> #include <queue> #include <math.h> using namespace std; int rankValor(char carta); in...
by Sharkest
Sat Apr 28, 2012 1:03 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 96264

Re: 10038 - Jolly Jumpers

Thanks you!
Its working now, got AC.
Just out of curiosity, why there needs to be a newline at the end of input?its just a norm?
by Sharkest
Fri Apr 27, 2012 6:06 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 96264

Re: 10038 - Jolly Jumpers

That's odd, why does it give a different output here? I compile the code then go to dos and do something like: jolly.exe <input.txt >output.txt and the output is different from the one at the link. What I'm doing wrong? What should i do to provide input exactly as the judge do?Or I'm getting the out...
by Sharkest
Thu Apr 26, 2012 1:51 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 96264

Re: 10038 - Jolly Jumpers

Can anyone tell me why my code is getting WA?
I have tested every single test case in this thread and the program generated the correct output.
Thanks in advance.

Code: Select all

Remove after AC.

Go to advanced search