結果

問題 No.2650 [Cherry 6th Tune *] セイジャク
ユーザー 👑 p-adicp-adic
提出日時 2024-02-24 00:21:46
言語 cLay
(20240104-1)
結果
AC  
実行時間 638 ms / 2,500 ms
コード長 373 bytes
コンパイル時間 3,703 ms
コンパイル使用メモリ 185,680 KB
実行使用メモリ 27,008 KB
最終ジャッジ日時 2024-02-24 00:22:04
合計ジャッジ時間 18,689 ms
ジャッジサーバーID
(参考情報)
judge16 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
testcase_01 AC 4 ms
6,548 KB
testcase_02 AC 82 ms
9,512 KB
testcase_03 AC 46 ms
6,752 KB
testcase_04 AC 437 ms
20,736 KB
testcase_05 AC 287 ms
16,768 KB
testcase_06 AC 98 ms
10,240 KB
testcase_07 AC 307 ms
17,920 KB
testcase_08 AC 60 ms
8,408 KB
testcase_09 AC 615 ms
27,008 KB
testcase_10 AC 626 ms
27,008 KB
testcase_11 AC 638 ms
27,008 KB
testcase_12 AC 598 ms
27,008 KB
testcase_13 AC 611 ms
27,008 KB
testcase_14 AC 595 ms
27,008 KB
testcase_15 AC 603 ms
27,008 KB
testcase_16 AC 457 ms
26,752 KB
testcase_17 AC 460 ms
26,752 KB
testcase_18 AC 485 ms
26,752 KB
testcase_19 AC 457 ms
26,752 KB
testcase_20 AC 457 ms
26,752 KB
testcase_21 AC 456 ms
26,752 KB
testcase_22 AC 448 ms
26,752 KB
testcase_23 AC 267 ms
26,752 KB
testcase_24 AC 266 ms
26,752 KB
testcase_25 AC 261 ms
26,880 KB
testcase_26 AC 263 ms
26,880 KB
testcase_27 AC 267 ms
26,752 KB
testcase_28 AC 265 ms
26,752 KB
testcase_29 AC 264 ms
26,752 KB
testcase_30 AC 405 ms
26,880 KB
testcase_31 AC 290 ms
26,880 KB
testcase_32 AC 178 ms
12,288 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;auto i=Z.begin(),e=Z.end();for(;i!=e;i++)i->second=s++;rep[X](x,N)x=Z[x];rep[W](w,T*2)w=Z[w];VI 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