number_set = set(range(1, 10001))
generator = set()

for i in range(1, 10001):
    for j in str(i):
        i += int(j)
    generator.add(i)
    
self_numbers = sorted(number_set - generator)
for i in self_numbers:
    print(i)

'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글

Baekjoon 2448번(python)  (2) 2019.04.28
Baekjoon 1065번(python)  (0) 2019.04.28
Baekjoon 1110번(python)  (0) 2019.04.27
Baekjoon 4344번(python)  (0) 2019.04.27
Baekjoon 1546번(python)  (0) 2019.04.27

N = input()

if(int(N) < 10):
    N = '0' + N

check_value = int(N)
count = 0
while True:
    add_value = int(N[0]) + int(N[1])
    count += 1
    
    N = N[-1] + str(add_value)[-1] 
    if(check_value == int(N)):
        break
print(count)

'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글

Baekjoon 1065번(python)  (0) 2019.04.28
Baekjoon 4673번(python)  (0) 2019.04.28
Baekjoon 4344번(python)  (0) 2019.04.27
Baekjoon 1546번(python)  (0) 2019.04.27
Baekjoon 10871번(python)  (0) 2019.04.27

C = int(input())

student_lists = list()
for _i in range(C):
    student_lists.append(list(map(int, input().split(' '))))

for student_list in student_lists:
    num_of_student = student_list[0]
    mean = sum(student_list[1:]) / num_of_student
    count = 0
    for score in student_list[1:]:
        if(mean < score):
            count += 1
    print('%.3f' % ((count / num_of_student) * 100) + '%')

'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글

Baekjoon 4673번(python)  (0) 2019.04.28
Baekjoon 1110번(python)  (0) 2019.04.27
Baekjoon 1546번(python)  (0) 2019.04.27
Baekjoon 10871번(python)  (0) 2019.04.27
Baekjoon 10817번(python)  (0) 2019.04.27

C = int(input())
score = list(map(int, input().split(' ')))
max_score = max(score)
new_score = [(lambda x : ((x / max_score) * 100))(x) for x in score]
print(sum(new_score) / C)

 

'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글

Baekjoon 1110번(python)  (0) 2019.04.27
Baekjoon 4344번(python)  (0) 2019.04.27
Baekjoon 10871번(python)  (0) 2019.04.27
Baekjoon 10817번(python)  (0) 2019.04.27
Baekjoon 9498번(python)  (0) 2019.04.27

N, X = map(int, input().split(' '))
A = list(input().split(' '))

sysout = ''
for i in A:
    if(int(i) < X):
        sysout += str(i) + ' '
        
print(sysout[:-1])

'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글

Baekjoon 4344번(python)  (0) 2019.04.27
Baekjoon 1546번(python)  (0) 2019.04.27
Baekjoon 10817번(python)  (0) 2019.04.27
Baekjoon 9498번(python)  (0) 2019.04.27
Baekjoon 15552번(python)  (0) 2019.04.27