#45838: python簡單解法


11310495 (李仲鎧台中一中)


while True:              #重複迴圈
    try:                      #try和except EOFError:直到EOFError為止
        a=int(input()) #輸入a整數
        b=str(bin(a))  #用bin函數轉為二進位,並且轉成字串
        print(b[2:])     #因為二進位輸出將會以0b開頭,所以將此字串分割(從第3項到最後一項)
    except EOFError:
        break

 

#55603: Re: python簡單解法


0xseanlee (0xseanlee)


import sys
a = sys.stdin.read().split()
for i in a:
    num = int(i)
    print(f"{num:b}")