結果
問題 |
No.2596 Christmas Eve (Heuristic ver.)
|
ユーザー |
|
提出日時 | 2023-11-26 20:51:14 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 656 bytes |
コンパイル時間 | 423 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 66,500 KB |
スコア | 0 |
最終ジャッジ日時 | 2023-12-23 20:30:20 |
合計ジャッジ時間 | 19,448 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 125 |
ソースコード
N,M=map(int,input().split()) a=list(map(int,input().split())) b=list(map(int,input().split())) c=list(map(int,input().split())) d=list(map(int,input().split())) e=list(map(int,input().split())) f=list(map(int,input().split())) tip=list(zip(a,b,range(1,N+1))) center=list(zip(c,d,range(1,N*2+1))) stem=list(zip(e,f,range(1,N+1))) tip.sort(reverse=True) center.sort(reverse=True) stem.sort(reverse=True) for i in range(M): while stem[-1][0]>=tip[-1][0]: tip.pop() while tip[-1][0]>=center[-1][0]: center.pop() print(stem[-1][2],center[-1][2],center[-2][2],tip[-1][2]) center.pop() center.pop() tip.pop() stem.pop()