change the value of the min variable to >=2500

still showing WA

Try

```
1
2 3
1 2
0 1
```

Is it 1?. Should it be 1?

I am getting 1 as the answer.What should the answer be in your opinion

I’ll give you a hint:

`for(int i=0;i<n;i++) { cin>>o[i]; o[i]=o[i]-1; }`

Is wrong.

ok i got it u want to say that 0 must be the answer

in the question given by everule1 does the answer be 0?

Yes.

It’s not

thank u i missed the case that input could be zero.

It is. I did the same mistake. Think about it

simply increasing the initial value of min and implementing a found variable got an AC

https://www.codechef.com/viewsolution/30560090