結果
問題 |
No.2596 Christmas Eve (Heuristic ver.)
|
ユーザー |
👑 |
提出日時 | 2023-12-23 22:01:26 |
言語 | cLay (20241019-1) |
結果 |
WA
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 2,820 ms |
コンパイル使用メモリ | 184,792 KB |
実行使用メモリ | 6,676 KB |
スコア | 0 |
最終ジャッジ日時 | 2023-12-23 22:01:41 |
合計ジャッジ時間 | 13,948 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 125 |
ソースコード
#define I insert ll@N,@K,@a[2N],@c[4N],@e[N];set<pair<ll,ll>>A,C,E;rep(i,N)A.I({a[i],i}),C.I({c[2i],2i}),C.I({c[2i+1],2i+1}),E.I({e[i],i});rep(K){auto i=E.begin(),j=A.upper_bound({i->first,N}),k=C.upper_bound({j->first,2N}),l=k++;wt(j->second,k->second,l->second,i->second);A.erase(j),C.erase(k),C.erase(l),E.erase(i);}