#30687: 一直TLE,有大神能指點錯誤的地方在哪裡嗎?


shiba0818 (本丸)


while True:
    try:
        a = int(input())
        output = ''
        while True:
            output += str(a % 2)
            if a // 2 != 1:
                a = a // 2
            else:
                output += str(a // 2) 
                print(output[::-1])
                break
    except:
        break

#30700: Re: 一直TLE,有大神能指點錯誤的地方在哪裡嗎?


asnewchien@gmail.com (david)


0 的情況。