all test case are wrong
Why my code is wrong
hello @naaz

first read n and the initialise r.
also declare ur array like this.
int a[n] // do this after reading n
all test case are wrong
hello @naaz

first read n and the initialise r.
also declare ur array like this.
int a[n] // do this after reading n