추가 '124 3진법.py'
This commit is contained in:
parent
a7df49e03c
commit
8fac4a0531
|
|
@ -0,0 +1,18 @@
|
|||
b=int(input('hah'))
|
||||
f=0
|
||||
h=''
|
||||
while b>0:
|
||||
f = b%3
|
||||
b= b//3
|
||||
if f==0:
|
||||
f=4
|
||||
b=b-1
|
||||
h=str(f)+h
|
||||
print(h)
|
||||
|
||||
|
||||
|
||||
|
||||
# if b==3
|
||||
# b=4
|
||||
|
||||
Loading…
Reference in New Issue