Umwandlung einer Ganzzahl in die Binärdarstellung

Dein Ziel ist es, ein Programm zu schreiben, das eine Ganzzahl n in ihrer Dezimalform einliest und sie in ihrer binären Entsprechung ausgibt.

Eingabe

Die einzige Zeile der Eingabe enthält eine einzelne Ganzzahl n ().

Ausgabe

Das Programm soll die Binärdarstellung ausgeben. Das erste Bit muss immer 1 sein.

Beispiele

Eingabe
Ausgabe
5
101
6
110
7
111
311
100110111
 
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue