-Code
n = int(input())
if n == 0:
print(1)
elif n == 1:
print(0)
else:
print('4' * (n % 2) + '8' * (n // 2))
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 9306번 Practice: Roll Call (0) | 2022.11.01 |
---|---|
[백준/파이썬] 17548번 Greetings! (0) | 2022.10.31 |
[백준/파이썬] 3276번 ICONS (0) | 2022.10.29 |
[백준/파이썬] 15372번 A Simple Problem. (1) | 2022.10.28 |
[백준/파이썬] 11368번 A Serious Reading Problem (0) | 2022.10.27 |