atcoder 競プロ典型90問 027 - Sign Up Requests (★2)
2022.11.10

問題

python
n = int(input())
names = [input() for i in range(n)]
 
d = {}
for i in range(n):
    if d.get(names[i]) == None:
        d.setdefault(names[i], True)
        print( i + 1)