I did this
https://www.codechef.com/submit/complete/24209317
I am getting NZEC
Hi
Can not open this link
To learn about NZEC run time error you can refer this link
https://www.quora.com/What-are-the-various-reasons-that-can-cause-NZEC-errors-on-online-coding-platforms
import java.util.*;
/**
*
When I submit it through IDE mode it is showing NZEC and through non ide mode, its not why ?
put this
for(int i =0;i<n;i++)a[i]=sc.nextLong();
in your if part also ( for n>130)
if n>130 you are not taking any input, but you should take
the question you have posted code of is gray code, not holi spoj
Thank You.
It Got Accepted now.