Chef -Jumping

Can anyone tell me input in chef-jumping “a” is must be given static or it can be taken from user using scanf or something…coz I dont know how code chef’s script run the program and directly give wrong answer…?

So, you first need to understand how codechef runs programs. Try this first
and read this

The input can be taken using scanf. Input will be entered by the judge automatically whenever there is a scanf statement. You do not need to add anything extra like printf(“Enter value of n”) or any other such statement. Just take input normally using scanf and print output only in the format specified.

1 Like
//