MAX2-problem-python-submission fails

practice

#1

Hey,

I’m new to code chef community.Can you help me in submitting my code. My python code runs fine when i execute manually but when i try to submit it throws me Run time error(NZEC ). Can you say what’s wrong with my code.

link: https://www.codechef.com/viewsolution/24240330