vahinipatiansh's blog

By vahinipatiansh, history, 5 weeks ago, In English

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

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

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