Following are the two codes that ran perfectly in my ide namely eclipse and also ran in online ide: ideone.com with correct output. However codechef gives NZEC error while there is no "division by zero" in any of the codes,which mainly causes NZEC (as mentioned in FAQ). I have also tried using try catch(as referred by FAQ) but result remains the same! No improvement! HELP ME PLEASE!!!
↧