Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sample test case
- ====================
- Input:
- ---------------
- 32 16
- 00000000000000000000000000000000
- 00111111000000000001111111111000
- 00011111111111111111100000000000
- 00000000111111111100000000000000
- 00000000000000000000000000000000
- 11111000000000000000000000000000
- 11110000000000000000000000000000
- 11111100000000000000000000000000
- 11111000000000000000000000000000
- 00000000000000000011111111111111
- 00000000000000000100000000000000
- 11111111111111111111111110000000
- 11111111111111111111111111111111
- 11111111111111111111111111111111
- 11111111111111111111111111111111
- 11111111111111111111111111111111
- Output:
- -------------
- 3
Add Comment
Please, Sign In to add comment