結果

問題 No.2139 K Consecutive Sushi
ユーザー 👑 p-adicp-adic
提出日時 2024-05-05 21:29:09
言語 cLay
(20240104-1)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 3,714 ms
コンパイル使用メモリ 181,052 KB
実行使用メモリ 18,688 KB
最終ジャッジ日時 2024-05-05 21:29:17
合計ジャッジ時間 6,418 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 84 ms
18,628 KB
testcase_04 AC 94 ms
18,688 KB
testcase_05 AC 85 ms
18,688 KB
testcase_06 AC 74 ms
18,560 KB
testcase_07 AC 85 ms
18,688 KB
testcase_08 AC 95 ms
18,688 KB
testcase_09 AC 95 ms
18,688 KB
testcase_10 AC 98 ms
18,628 KB
testcase_11 AC 111 ms
18,688 KB
testcase_12 AC 104 ms
18,560 KB
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 1 ms
5,376 KB
testcase_15 AC 1 ms
5,376 KB
testcase_16 AC 1 ms
5,376 KB
testcase_17 AC 1 ms
5,376 KB
testcase_18 AC 2 ms
5,376 KB
testcase_19 AC 1 ms
5,376 KB
testcase_20 AC 2 ms
5,376 KB
testcase_21 AC 1 ms
5,376 KB
testcase_22 AC 2 ms
5,376 KB
testcase_23 AC 9 ms
5,376 KB
testcase_24 AC 27 ms
7,808 KB
testcase_25 AC 68 ms
17,920 KB
testcase_26 AC 8 ms
5,376 KB
testcase_27 AC 22 ms
7,424 KB
testcase_28 AC 21 ms
7,680 KB
testcase_29 AC 12 ms
5,504 KB
testcase_30 AC 31 ms
11,008 KB
testcase_31 AC 82 ms
18,432 KB
testcase_32 AC 11 ms
5,632 KB
testcase_33 AC 86 ms
18,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,@K,@A[N],s=0,a;segtree<ll>t;t.malloc(N+1,1);REP(i,N+1)s+=a=i<N?A[i]:0,t.change(i,i+1,(i<K?0:t.getMinVal(i-K,i))+a);wt(s-t[N]);
0