Why CHFQUEUE -WA?

i have tested a lot of cases on my system and i m gettin right answer…bt i m getting WA for my solution on submission plz help… following is the link to my solution CodeChef: Practical coding for everyone
the problem link is CHFQUEUE Problem - CodeChef

Heading #### Your code gives wrong answer for large values of N and K .

correct code output

your code output

1 Like

Thank you so much. That was a small problem but was stucked in it from 2 days.