The CodeChef judge is weak especially when it comes to judging ZCO solutions written in Python.
In many cases I have noticed that the same logic when applied to programs written in C/C++ and Python, the Python program gets a TLE in one or more test cases whereas the C/C++ program gets AC without a hassle.
Consider this problem (ZCO16002 - Bamboo Art):
Below is the code written in Python and C++. Python gets TLE in the second-to-last test case whereas C++ breezes through them.
MAXN = 100000001;input_all = [int(x) for x in input().split()]N, bamboo = input_all, sorted(input_all[1:])all_nums = [False] * MAXNfor num in bamboo:all_nums[num] = Trueans = 0for i in range(N):