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
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 )