이카's
article thumbnail
Published 2020. 10. 5. 11:45
Baekjoon #1065번 한수 Python BOJ

1
2
3
4
5
6
7
8
9
10
11
12
13
def solution():
    num = int(input())
    hansu_count = 0
    for i in range(1, num+1):
        if i <= 99:
            hansu_count += 1
        else:
            hansu = list(map(intstr(i)))
            if hansu[0- hansu[1== hansu[1- hansu[2]:
                hansu_count += 1
    return hansu_count
 
print(solution())

간단히 풀었습니다.

 

반응형
profile

이카's

@Edan Cafe ☕

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!