Link to code :
https://www.codechef.com/viewsolution/49953239
When I run it on codechef, it is showing SIGTSTP.
Please tell why…
Link to code :
https://www.codechef.com/viewsolution/49953239
When I run it on codechef, it is showing SIGTSTP.
Please tell why…
It goes into an infinite loop for the following test input:
1
5 2
01000
Edit:
And on the sample test input.
Got my mistake.
https://www.codechef.com/viewsolution/49976069
The sample cases are getting right now, but submission is still wrong.
Which testcase is going wrong?