arya5691's blog

By arya5691, 12 years ago, In English

Hi,

I coded the following solution to Problem H of Round #145 Div 2 — Merging 2 Decks :

Solution Link : http://codeforces.net/contest/234/submission/2418169

Problem Link : http://codeforces.net/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://codeforces.net/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 :)

  • Vote: I like it
  • -1
  • Vote: I do not like it

»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

input input.txt

output output.txt

  • »
    »
    12 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    sorry, my mistake. thanks for pointing that out !