Don’t waste time on optimization, it won’t pass neither wiht py2 nor with py3.
Compare with solution provided in editorial for correctness.
[Python] Don't waste time on TLE if you are using python
vaibhavD14
#1