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: -
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