riyo's blog

By riyo, history, 4 weeks ago, In English

Can someone find what is the problem in my code? I have been stuck for 4 hours :') https://codeforces.com/contest/1512/submission/113090145

 
 
 
 
  • Vote: I like it
  • -14
  • Vote: I do not like it

»
4 weeks ago, # |
  Vote: I like it +5 Vote: I do not like it

Consider Case :

1
10 4
????????00000?

According to your code output is -1 where as you can form 10000011000001