結果

問題 No.2650 [Cherry 6th Tune *] セイジャク
コンテスト
ユーザー 👑 p-adic
提出日時 2023-07-26 01:58:43
言語 cLay
(20250308-1 + boost 1.92.0 + ACL)
コンパイル:
clayc _filename_
実行:
./a.out
結果
AC  
実行時間 367 ms / 2,500 ms
+ 646µs
コード長 413 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,697 ms
コンパイル使用メモリ 215,096 KB
実行使用メモリ 38,984 KB
最終ジャッジ日時 2026-09-22 23:05:36
合計ジャッジ時間 17,428 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#define V {return x;}
ll segtree_rh_merge(ll x,ll y)V;ll segtree_rh_apply(ll x,ll y)V;ll segtree_rh_compose(ll x,ll y)V;{ll@N,@o,@X[N],@T,@W[T*2],M=548;map<ll,ll>Z;rep[X](x,N)Z[x];rep[W](w,T*2)Z[w];ll s=0;for(auto i=Z.begin(),e=Z.end();i!=e;i++)i->second=s++;rep[X](x,N)x=Z[x];rep[W](w,T*2)w=Z[w];segtree_rh<ll,ll>A;A.malloc(s);A.setN(s,0,0);rep(t,T)A.change(W[t*2],W[t*2+1]+1,t+2);rep[X](x,N)wt(A.get(x,x+1)-1);}
0