## 문제
BOJ 5597
## 풀이
30명중 미제출자 2명의 번호 찾기.
30개짜리 배열 만들어서 입력받은곳에 체크하면 된다.
## 코드
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmp_list = [0 for k in range(30)] | |
for k in range(28): | |
tmp_input = int(input()) | |
tmp_list[tmp_input - 1] = 1 | |
for k in range(len(tmp_list)): | |
if tmp_list[k] == 0: | |
print(k + 1) |
0 댓글