結果
| 問題 |
No.714 回転寿司屋のシミュレート
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-10 20:36:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 475 bytes |
| コンパイル時間 | 611 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2025-01-10 20:36:49 |
| 合計ジャッジ時間 | 3,745 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 RE * 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)
break
else:
print(-1)
else:
del dict[int(q[1])]