Hi,
I coded the following solution to Problem H of Round #145 Div 2 — Merging 2 Decks :
Solution Link : http://mirror.codeforces.com/contest/234/submission/2418169
Problem Link : http://mirror.codeforces.com/contest/234/problem/H .
When I submit this solution, I get the message "Runtime Error on Test 1". However my program runs properly for test case 1 locally, as well as on IDEONE. Does anyone have any idea what the problem could be ?
Also, I submitted a solution using a Try Catch block to catch any Runtime exception, and I am printing the Stack Trace to STDOUT.
( Link : http://mirror.codeforces.com/contest/234/submission/2418290 )
However, now I simply get Wrong Answer on Test Case 1 and I can't see what exactly my program is outputting :( Does anyone know any workaround to figure out exactly what's wrong ?
Any feedback would be much appreciated! Thank you :)
input input.txt
output output.txt
sorry, my mistake. thanks for pointing that out !