类似短除,倒序加余数
shu=int(input()) er='' while True: yu=shu%2 shu=shu//2 er=str(yu)+er if shu==1 or shu==-1: break shu=str(shu) print(shu+er)
类似短除,倒序加余数
shu=int(input()) er='' while True: yu=shu%2 shu=shu//2 er=str(yu)+er if shu==1 or shu==-1: break shu=str(shu) print(shu+er)