結果
| 問題 |
No.714 回転寿司屋のシミュレート
|
| コンテスト | |
| ユーザー |
nonokai10
|
| 提出日時 | 2018-09-30 16:03:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| コード長 | 505 bytes |
| コンパイル時間 | 135 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,904 KB |
| 最終ジャッジ日時 | 2024-10-12 09:10:40 |
| 合計ジャッジ時間 | 2,724 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
n = int(input())
data = [input().split() for i in range(n)]
customers = [None]*20
for i in range(n):
if data[i][0] == "0":
customers[int(data[i][1])-1] = list(data[i][2:])
elif data[i][0] == "1":
for j in range(20):
if customers[j] and data[i][1] in customers[j]:
print(j+1)
customers[j].remove(data[i][1])
break
else:
print(-1)
elif data[i][0] == "2":
customers[int(data[i][1])-1] = None
nonokai10