can someone please help me with the logic of 556A — Case of the Zeros and Ones.

Revision en3, by zonedout, 2024-09-17 21:11:16

556A - Case of the Zeros and Ones

HERE is my code:

it fails on test 12. the input is not totally visible since its a long no. the output to test 12 should have been 0(according to the site) but am getting the output as 199996

Tags 900

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English zonedout 2024-09-17 21:11:16 657
en2 English zonedout 2024-09-17 21:09:30 4 Tiny change: ' code:\n\n#inclu' -> ' code:\n\n\n#inclu'
en1 English zonedout 2024-09-17 21:08:53 947 Initial revision (published)