結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
![]() |
提出日時 | 2024-12-28 01:16:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 528 bytes |
コンパイル時間 | 412 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-28 01:16:31 |
合計ジャッジ時間 | 2,704 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
import sysinput = sys.stdin.readlinefrom collections import CounterLIST=[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]-=1breakelse:print(-1)elif L[0]=="0":C=Counter(L[3:])LIST[int(L[1])]=Celse:x=int(L[1])LIST[x]=Counter()