Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Testcases by Samkit Lodha
- #Testcases for minimum Beating
- ___________________________________________________________________________________________________________________________
- // Testcase : 1
- //Input :
- 13
- 1001001001001
- //Output :
- 3
- ___________________________________________________________________________________________________________________________
- // Testcase : 2
- //Input :
- 9
- 101110110
- //Output :
- 1
- ___________________________________________________________________________________________________________________________
- // Testcase : 3
- //Input :
- 60
- 100010100101010000101001001001110001101111011101111111100011
- // Output :
- 10
- _________________________________________________________________________________________________________________
- // Testcase : 4
- //Input :
- 95
- 10100000011101010110010111001101111101001000010001010101001000000011101100100110000010010100010
- // Output :
- 19
- ___________________________________________________________________________________________________________________________
- // Testcase : 5
- //Input :
- 100
- 0000110111111010100110010010110101010101001110000000010010100100000001000011000110011001011101001111
- // Output :
- 20
- __________________________________________________________________________________________________________________________
- // Testcase : 6
- //Input :
- 17
- 01111111101001110
- // Output :
- 3
- ___________________________________________________________________________________________________________________________
- // Testcase : 7
- //Input :
- 88
- 0001011110101011110001110111100011111111001001001100010111110111100010001010010010101110
- // Output :
- 18
- ___________________________________________________________________________________________________________________________
- // Testcase : 8
- //Input :
- 65
- 00100100000001100011101100000111011001010111001100101000011111111
- // Output :
- 13
- ___________________________________________________________________________________________________________________________
- // Testcase : 9
- //Input :
- 24
- 101111001011001000000000
- // Output :
- 3
- ___________________________________________________________________________________________________________________________
- // Testcase : 10
- //Input :
- 35
- 01010101110100101100010000110010110
- // Output :
- 7
- ___________________________________________________________________________________________________________________________
- // Testcase : 11
- //Input :
- 50
- 01001101011110001001001101100101110111111110010011
- // Output :
- 10
- __________________________________________________________________________________________________________________________
- // Testcase : 12
- //Input :
- 85
- 0000100101101001001011000000111010010100000101010110011011111001100100100100001101010
- // Output :
- 17
- ___________________________________________________________________________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment