Skip to content

Commit

Permalink
백준 26884 Kent-buggen python 시간 초과
Browse files Browse the repository at this point in the history
  • Loading branch information
dydwnsekd committed Dec 27, 2024
1 parent b61fa4d commit 7904073
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions baekjoon/python/26884.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import sys

artist_list = []
artist_double_list = []

n = int(sys.stdin.readline())

for i in range(n):
artist = sys.stdin.readline().strip()
if artist in artist_list:
if artist in artist_double_list:
pass
else:
artist_double_list.append(artist)
else:
artist_list.append(artist)

print(len(artist_double_list))

0 comments on commit 7904073

Please sign in to comment.