Skip to content

Commit aeda0e8

Browse files
committed
Solution code for baekjoon/1373
1 parent eab5c7b commit aeda0e8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

math/baekjoon/1373/solution.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# base2 = str(input())
2+
# base8 = ""
3+
4+
# digits = {
5+
# "000": "0",
6+
# "001": "1",
7+
# "010": "2",
8+
# "011": "3",
9+
# "100": "4",
10+
# "101": "5",
11+
# "110": "6",
12+
# "111": "7",
13+
# "00": "0",
14+
# "01": "1",
15+
# "10": "2",
16+
# "11": "3",
17+
# "0": "0",
18+
# "1": "1",
19+
# }
20+
21+
# while base2 != "":
22+
# temp = base2[-3::]
23+
# base2 = base2[:-3:]
24+
25+
# base8 = digits[temp] + base8
26+
27+
# print(base8)
28+
29+
base2 = input()
30+
print(oct(int(base2, 2))[2:])

0 commit comments

Comments
 (0)