vasanthaganesh's blog

By vasanthaganesh, history, 4 years ago, In English

[submission:78249878][submission:78248612][problem:339C]

I've been stuck on this problem. The question says if there are multiple possible answers, print any of them. My answers do not seem to pass. I think they are correct. Can you please tell me why my answers are wrong?

Test case 1:

0000000101
3

My answer:

YES
10 8 10

Wrong answer on test case 4:

Test case 2:

1111111111
1000

My answer:

1 2 3 1 2 1 2...

Thanks in advance, Vasanth.

  • Vote: I like it
  • 0
  • Vote: I do not like it