結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
![]() |
提出日時 | 2018-07-13 22:49:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 95 ms / 2,000 ms |
コード長 | 599 bytes |
コンパイル時間 | 319 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-09 05:26:59 |
合計ジャッジ時間 | 2,709 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
N = int(input()) people = [[] for i in range(20)] for i in range(N): inp = input().split() if inp[0]=='0': num = int(inp[1])-1 for j in range(2,len(inp)): people[num].append(inp[j]) elif inp[0]=='1': susi = inp[1] for j in range(20): for n, l in enumerate(people[j]): if l==susi: people[j].pop(n) print(j+1) break else: continue break else: print(-1) else: people[int(inp[1])-1] = []