結果
問題 | No.714 回転寿司屋のシミュレート |
ユーザー |
![]() |
提出日時 | 2020-07-16 21:25:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-25 07:57:20 |
合計ジャッジ時間 | 2,380 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
import sysinput=lambda: sys.stdin.readline().rstrip()n=int(input())L=[[] for i in range(20)]for _ in range(n):U=[str(i) for i in input().split()]if U[0]=="0":n,m=int(U[1]),int(U[2])for i in range(3,3+m):L[n-1].append(U[i])elif U[0]=="1":b=U[1]for i in range(20):if b in L[i]:print(i+1)L[i].remove(b)breakelse:print(-1)else:c=int(U[1])L[c-1]=[]