Reversed number in binary P28754


Statement
 

pdf   zip

thehtml

Write a program that reads a number and prints its binary representation reversed.

Input

Input consists of a natural number.

Output

Print, reversed, the binary representation of the number, with as many zeros at its left as required.

Public test cases
  • Input

    16
    

    Output

    00001
    
  • Input

    1023
    

    Output

    1111111111
    
  • Input

    90800
    

    Output

    00001101010001101
    
  • Input

    65547
    

    Output

    11010000000000001
    
  • Input

    0
    

    Output

    0
    
  • Input

    1000000000
    

    Output

    000000000101001101011001110111
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Salvador Roura
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Java PHP Python Rust