Problem 580C — runtime error in Ruby

Revision en1, by korowiov87, 2017-03-29 21:37:19

Hi, I'm trying to solve this problem in Ruby: http://codeforces.net/contest/580/problem/C but I got RUNTIME ERROR on test number 35: http://codeforces.net/contest/580/submission/25929179

Here is my code: http://ideone.com/B0XtIg

Thank you in advance for your help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English korowiov87 2017-03-29 21:37:19 309 Initial revision (published)