結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
|
提出日時 | 2025-01-10 20:54:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 65 ms / 2,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 258 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 10,368 KB |
最終ジャッジ日時 | 2025-01-10 20:54:25 |
合計ジャッジ時間 | 3,100 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
dict = {i:[] for i in range(21)}n = int(input())for i in range(n):q = input().split()if q[0] == "0":a = int(q[1])for j in range(len(q[3:])):dict[a].append(q[j+3])elif q[0] == "1":b = q[1]for j in range(1, 21):if b in dict[j]:print(j)dict[j].remove(b)breakelse:print(-1)elif q[0] == "2":dict[int(q[1])].clear()