MAXAND18 : Can Somebody suggest me TESTCASE where my code is going wrong

Guys, I’m getting partial points for the problem, Can anbody suggest where my code is going wrong.
Thanks in advance!

Here is the code:
https://www.codechef.com/viewsolution/34820288

you need to use k ones but in the case when there are like less than k values 1 in the array you would output a number that doesn’t have k zeroes
(P.S. good names for variables :stuck_out_tongue:)

1 Like

thanks @anurag_bhatt