Блог пользователя Code4Food

Автор Code4Food, история, 6 лет назад, По-английски

I'm new to codeforces I was practicing and I decided to solve this problem: Problem 899A I'm getting a runtime error although the algorithm runs smoothly on my pc here is a link to my submission: http://codeforces.com/contest/899/submission/33360057

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

The problem specification says: "The first line contains single integer n... The second line contains a sequence of integers...".

Have you actually tried the input 4<ENTER>1 1 2 1 on your pc? I bet you just have tried 4 1 1 2 1.