Search found 31 matches

by moxlotus
Sun Sep 30, 2018 4:28 pm
Forum: Volume 6 (600-699)
Topic: 627 - The Net
Replies: 18
Views: 6589

Re: 627 - The Net

Not too sure what is wrong with the code, I have tried the inputs from uDebug and got everything correct. but keeps getting WA on UVa. Anyone has any better test case for me to try out? #include <bits/stdc++.h> #define FOR(i,a,b) for(int i=(a);i<(int)(b);++i) #define MAX(a,b) ((a)>(b)?(a):(b)) #defi...
by moxlotus
Sat Feb 07, 2015 7:16 am
Forum: Volume 128 (12800-12899)
Topic: 12841 - In Puzzleland (III)
Replies: 1
Views: 599

Re: 12841 - In Puzzleland (III)

AC
by moxlotus
Tue Jan 20, 2015 7:09 am
Forum: Volume 110 (11000-11099)
Topic: 11013 - Get Straight
Replies: 12
Views: 4446

Re: 11013 - Get Straight

AC

Test Case that caused my code to fail.
AD AH AS KD KH
AC Output:
Stay

Hope this helps =)
by moxlotus
Mon Jan 19, 2015 9:14 pm
Forum: Volume 110 (11000-11099)
Topic: 11013 - Get Straight
Replies: 12
Views: 4446

Re: 11013 - Get Straight WA

I have passed all the random input from udebug. But I am still getting WA. Can someone provide more random inputs? 7D TD 5C 4H AC AD 8H TS JH 5H # My output for the above list is: Exchange TD Exchange AD The output from udebug is: Exchange AC Exchange 5H Can someone tell me why is there a difference...
by moxlotus
Sun Jan 11, 2015 11:09 am
Forum: Volume 120 (12000-12099)
Topic: 12047 - Highest Paid Toll
Replies: 8
Views: 2122

Re: 12047 - Highest Paid Toll

AC
by moxlotus
Sat Dec 13, 2014 2:10 pm
Forum: Volume 105 (10500-10599)
Topic: 10567 - Helping Fill Bates
Replies: 15
Views: 7549

Re: 10567 - Helping Fill Bates

thx brianfry for the test cases. =)
by moxlotus
Thu Dec 11, 2014 2:15 pm
Forum: Volume 109 (10900-10999)
Topic: 10963 - The Swallowing Ground
Replies: 47
Views: 11835

Re: 10963 - The Swallowing Ground

brianfry713 wrote:You are resetting diff to 2000000000 at every column.
You will also need to continue reading the input all the way to the end even if the gaps don't match.
oops... silly mistake. D=
by moxlotus
Thu Dec 11, 2014 8:49 am
Forum: Volume 105 (10500-10599)
Topic: 10567 - Helping Fill Bates
Replies: 15
Views: 7549

Re: 10567 - Helping Fill Bates

Got WA, but passed the test cases by brianfry. :(
I am wondering what am i missing here.

Code: Select all

AC
by moxlotus
Mon Dec 08, 2014 10:34 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 19390

Re: 483 - Word Scramble

lighted wrote:Increase value of size by 1 for '\0' character.
Thanks.
by moxlotus
Mon Dec 08, 2014 10:32 am
Forum: Volume 109 (10900-10999)
Topic: 10963 - The Swallowing Ground
Replies: 47
Views: 11835

Re: 10963 - The Swallowing Ground

Code: Select all

AC
Still Getting wrong ans after reading all the posts here. Can someone give me the critical case that i did not cover?
by moxlotus
Sat Dec 06, 2014 6:28 pm
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 19390

Re: 483 - Word Scramble Runtime Error

The following code executes perfectly fine on my machine but gets RE on UVa.

Code: Select all

 AC
Can someone tell me where the source of RE is in this piece of code? perhaps a test case that can cause RE will be much appreciated. :)
by moxlotus
Thu Dec 04, 2014 8:02 pm
Forum: Volume 3 (300-399)
Topic: 341 - Non-Stop Travel
Replies: 38
Views: 11288

Re: 341 - Non-Stop Travel

AC
by moxlotus
Sun Aug 17, 2014 10:38 am
Forum: Volume 107 (10700-10799)
Topic: 10755 - Garbage Heap
Replies: 20
Views: 10564

Re: 10755 - Garbage Heap

Is this a 3D RSQ?
by moxlotus
Sun Aug 17, 2014 10:34 am
Forum: Volume 109 (10900-10999)
Topic: 10928 - My Dear Neighbours
Replies: 13
Views: 7969

Re: 10928 - My Dear Neighbours

Runtime Error on my following code. Can someone tell me why?

AC'ed

Go to advanced search