結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
|
提出日時 | 2024-05-14 09:31:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 112 ms / 2,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 82,912 KB |
実行使用メモリ | 77,012 KB |
最終ジャッジ日時 | 2024-12-20 09:51:34 |
合計ジャッジ時間 | 4,133 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
N = int(input())S = [[]] * 20for _ in range(N):U = input().split()if U[0] == "0":S[int(U[1]) - 1] = U[3:]elif U[0] == "1":for i in range(20):if U[1] in S[i]:print(i + 1)S[i].pop(S[i].index(U[1]))breakelse:print(-1)else:S[int(U[1]) - 1].clear()