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
And my code: -