Runtime Error: NZEC but test case is running fine

Even I have tried different inputs which seems to work well but upon submission I get Runtime Error. My code: Solution: 41780895 | CodeChef