atcoder 競プロ典型90問 027 - Sign Up Requests (★2)
2022.11.10
問題
pythonn = 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)
pythonn = 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)