"I want to ask a question" - Ask them all here!

NZEC error most commonly happens when you access an array out of bounds, especially in JAVA. I will suggest you go through any nested loop and make sure its of type-

for(i=0;i<n-1;i++)
   for(j=i+1;j<n;j++)

Which language are you using? If its C++, then long and int have same memory. Use long long int instead of long or int.

Data overflow usually gives WA.

I am using Java

Then it must be a logical error on your part. Make sure to read the Q carefully and check comments (if any).

Thanks vijju, it was a logical error. Got AC.

1 Like

Actually it’s completed now.is it right now ?

Goto your profile and use the pencil button to edit things out. Its better if you use english. Regarding use of native language in address, please mail them at help@codechef.com because its they who can best tell regarding this.

Rhombus and radius? Do you mean semi-diagonal?

1 Like

@vijju123 is the man ! :smiley:

1 Like

answer is 10,0,2

1 Like

Google “Codechef’s new karma system” and you will find every detail needed on codechef blog.

What is the reason for this error…
Custom input works fine but when I run or submit shows wrong answer…
Even works on my own IDE

The contest is currently live. It will be against rules answering this question.

Slower languages are given appropriate time compensation so that they dont get TLE if algo is fine. You should, however, prefer c++ ideally.

Comments are usually hidden until admins decide otherwise.

What does star represents.? Is it the same as karma? Or please send me a reference to get all about codechef

now someone tell why i got this error … and still getting in many other

why do i need to check through in.nextInt() or some other??
and even after checking now it gives runtime error(nzec) why?
someone pls help?

@manoj09 your link is broken.

@sysm updated link: CodeChef: Practical coding for everyone