結果

問題 No.2650 [Cherry 6th Tune *] セイジャク
ユーザー 👑 p-adicp-adic
提出日時 2023-07-26 11:36:39
言語 cLay
(20240104-1)
結果
AC  
実行時間 319 ms / 2,500 ms
コード長 380 bytes
コンパイル時間 4,273 ms
コンパイル使用メモリ 185,388 KB
実行使用メモリ 27,136 KB
最終ジャッジ日時 2024-04-27 04:51:51
合計ジャッジ時間 11,624 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,812 KB
testcase_01 AC 1 ms
6,940 KB
testcase_02 AC 46 ms
9,516 KB
testcase_03 AC 26 ms
6,940 KB
testcase_04 AC 204 ms
20,736 KB
testcase_05 AC 138 ms
16,896 KB
testcase_06 AC 57 ms
10,240 KB
testcase_07 AC 173 ms
17,920 KB
testcase_08 AC 42 ms
8,412 KB
testcase_09 AC 319 ms
27,008 KB
testcase_10 AC 308 ms
27,008 KB
testcase_11 AC 313 ms
27,136 KB
testcase_12 AC 300 ms
27,008 KB
testcase_13 AC 298 ms
27,136 KB
testcase_14 AC 308 ms
27,008 KB
testcase_15 AC 306 ms
27,008 KB
testcase_16 AC 231 ms
26,752 KB
testcase_17 AC 243 ms
26,752 KB
testcase_18 AC 245 ms
26,752 KB
testcase_19 AC 231 ms
26,752 KB
testcase_20 AC 240 ms
26,752 KB
testcase_21 AC 248 ms
26,752 KB
testcase_22 AC 246 ms
26,752 KB
testcase_23 AC 159 ms
26,752 KB
testcase_24 AC 161 ms
26,752 KB
testcase_25 AC 156 ms
26,880 KB
testcase_26 AC 158 ms
26,880 KB
testcase_27 AC 164 ms
26,880 KB
testcase_28 AC 159 ms
26,752 KB
testcase_29 AC 160 ms
26,624 KB
testcase_30 AC 241 ms
26,880 KB
testcase_31 AC 174 ms
27,008 KB
testcase_32 AC 87 ms
12,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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];vector<int>A(s,-1),B(M,-1);rep(t,T){ll a,n,m,l=W[t*2],r=W[t*2+1]+1;m=(l+M-1)/M;n=max(m,r/M);a=min(m*M,r);rep[A](x,l,a)x=t+1;rep[B](x,m,n)x=t+1;rep[A](x,max(a,n*M),r)x=t+1;}rep[X](x,N)wt(max(A[x],B[x/M]));
0