# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
654588 | 2022-10-31T19:41:38 Z | beaconmc | Brunhilda’s Birthday (BOI13_brunhilda) | C++14 | 0 ms | 0 KB |
m,q = map(int, input().split()) lis = list(map(int, input().split())) nums = [] for i in range(q): nums.append(int(input())) for i in nums: cnt = 0 while i > 0: mini = 1000000000 for j in lis: if mini == i: print("oo") break i = mini cnt += 1 if i==0: print(cnt)