#37742: python解題方法(6行)


chouwai911221 (waichou)


python本身有內建bin()函數可直接轉換,轉換完結果為字串(0bxxxxxxx),再取str1[2]後面的數輸出即可
其他語言使用綜合除法導入陣列亦可
while True:
    try:
        s = int(input())
        print(bin(s)[2::])
    except:
        break