結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
|
提出日時 | 2025-01-10 20:50:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 510 bytes |
コンパイル時間 | 506 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2025-01-10 20:51:00 |
合計ジャッジ時間 | 2,988 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 34 |
ソースコード
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":for j in dict[int(q[1])]:del j