Samkit5025

Untitled

Aug 29th, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. #Testcases by Samkit Lodha
  2. #Testcases for minimum Beating
  3.  
  4. ___________________________________________________________________________________________________________________________
  5. // Testcase : 1
  6.  
  7. //Input :
  8. 13
  9. 1001001001001
  10.  
  11. //Output :
  12. 3
  13. ___________________________________________________________________________________________________________________________
  14. // Testcase : 2
  15.  
  16. //Input :
  17. 9
  18. 101110110
  19.  
  20. //Output :
  21. 1
  22.  
  23. ___________________________________________________________________________________________________________________________
  24. // Testcase : 3
  25.  
  26. //Input :
  27. 60
  28. 100010100101010000101001001001110001101111011101111111100011
  29.  
  30.  
  31. // Output :
  32. 10
  33.  
  34. _________________________________________________________________________________________________________________
  35. // Testcase : 4
  36.  
  37. //Input :
  38. 95
  39. 10100000011101010110010111001101111101001000010001010101001000000011101100100110000010010100010
  40.  
  41.  
  42. // Output :
  43. 19
  44.  
  45. ___________________________________________________________________________________________________________________________
  46. // Testcase : 5
  47.  
  48. //Input :
  49. 100
  50. 0000110111111010100110010010110101010101001110000000010010100100000001000011000110011001011101001111
  51.  
  52.  
  53. // Output :
  54. 20
  55.  
  56. __________________________________________________________________________________________________________________________
  57. // Testcase : 6
  58.  
  59. //Input :
  60. 17
  61. 01111111101001110
  62.  
  63.  
  64. // Output :
  65. 3
  66.  
  67. ___________________________________________________________________________________________________________________________
  68. // Testcase : 7
  69.  
  70. //Input :
  71. 88
  72. 0001011110101011110001110111100011111111001001001100010111110111100010001010010010101110
  73.  
  74.  
  75. // Output :
  76. 18
  77.  
  78. ___________________________________________________________________________________________________________________________
  79. // Testcase : 8
  80.  
  81. //Input :
  82. 65
  83. 00100100000001100011101100000111011001010111001100101000011111111
  84.  
  85.  
  86. // Output :
  87. 13
  88.  
  89. ___________________________________________________________________________________________________________________________
  90. // Testcase : 9
  91.  
  92. //Input :
  93. 24
  94. 101111001011001000000000
  95.  
  96.  
  97. // Output :
  98. 3
  99.  
  100. ___________________________________________________________________________________________________________________________
  101. // Testcase : 10
  102.  
  103. //Input :
  104. 35
  105. 01010101110100101100010000110010110
  106.  
  107.  
  108. // Output :
  109. 7
  110.  
  111. ___________________________________________________________________________________________________________________________
  112. // Testcase : 11
  113.  
  114. //Input :
  115. 50
  116. 01001101011110001001001101100101110111111110010011
  117.  
  118.  
  119. // Output :
  120. 10
  121.  
  122. __________________________________________________________________________________________________________________________
  123. // Testcase : 12
  124.  
  125. //Input :
  126. 85
  127. 0000100101101001001011000000111010010100000101010110011011111001100100100100001101010
  128.  
  129.  
  130. // Output :
  131. 17
  132.  
  133. ___________________________________________________________________________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment