結果
| 問題 | No.714 回転寿司屋のシミュレート |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-12-28 01:16:28 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 109 ms / 2,000 ms |
| コード長 | 528 bytes |
| 記録 | |
| コンパイル時間 | 667 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-06-02 09:45:16 |
| 合計ジャッジ時間 | 6,050 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
import sys
input = sys.stdin.readline
from collections import Counter
LIST=[Counter() for i in range(25)]
N=int(input())
for tests in range(N):
L=input().split()
if L[0]=="1":
x=L[1]
for i in range(25):
if x in LIST[i] and LIST[i][x]>0:
print(i)
LIST[i][x]-=1
break
else:
print(-1)
elif L[0]=="0":
C=Counter(L[3:])
LIST[int(L[1])]=C
else:
x=int(L[1])
LIST[x]=Counter()
titia