Getting NZEC Error while solving Chef and Functions in python.

I tried executing on ideone and it executes succesfully for very large values.
Then I checked all submissions made in python, and saw most of them got the NZEC error too.
Anyone who tried solving in python got AC in C/C++ using the same logic?


zero successful submission using python… hmm strange.