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

Автор vahinipatiansh, история, 3 года назад, По-английски

Guys, I am stuck in this program, I have used Python to solve this question and I am getting the Output on Pycharm but here on the Codeforces Compiler it is showing a runtime error. These errors really suck!

Check out the question and the code guys! B. Almost Rectangle

https://codeforces.com/contest/1512/problem/B

And my code: -

https://codeforces.com/contest/1512/submission/115986621

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

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

runtime error because of row = [a for a in input().split()]. Instead write row = [a for a in input().strip()].

Your output format was also wrong. Instead of print(*m), it should be print(*m,sep='')

Hope it helps