You can not take input like this:
While(scanf("%d %d %d",&n,&k,&p)!=EOF){
}
there is an issue in judge data.
Do not take input upto EOF. it cost me 15 unnecessary submmisions :(.
You can not take input like this:
While(scanf("%d %d %d",&n,&k,&p)!=EOF){
}
there is an issue in judge data.
Do not take input upto EOF. it cost me 15 unnecessary submmisions :(.