diff --git a/124 3진법.py b/124 3진법.py new file mode 100644 index 0000000..5efc6e5 --- /dev/null +++ b/124 3진법.py @@ -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 +