結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
![]() |
提出日時 | 2021-05-05 18:16:47 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 134 ms / 2,000 ms |
コード長 | 651 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,580 KB |
実行使用メモリ | 77,824 KB |
最終ジャッジ日時 | 2024-09-13 11:24:28 |
合計ジャッジ時間 | 4,386 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
N = int(input())D = [{} for i in range(20)]from collections import Counterfor i in range(N):U = list(map(str, input().split()))if U[0] == '1':b = U[1]#print(D)for i in range(20):if b in D[i]:if D[i][b] == 0:continueelse:D[i][b] -= 1print(i+1)breakelse:print(-1)elif U[0] == '0':n, m = int(U[1]), int(U[2])n -= 1A = U[3:]C = Counter(A)D[n] = Celse:c = int(U[1])c -= 1D[c] = {}