結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
|
提出日時 | 2018-07-26 18:50:07 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 58 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 03:23:04 |
合計ジャッジ時間 | 2,235 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#yuki714from collections import Countern=int(raw_input())l=[Counter() for i in xrange(20)]for i in xrange(n):d=raw_input().split()if d[0]=='0':x=int(d[1])-1l[x]=Counter(d[3:])elif d[0]=='1':for j in xrange(20):if l[j][d[1]]>0:print j+1l[j][d[1]]-=1breakelse:print -1else:l[int(d[1])-1]=Counter()