結果

問題 No.3046 yukicoderの過去問
ユーザー 👑 p-adicp-adic
提出日時 2023-09-10 20:13:42
言語 cLay
(20240104-1)
結果
AC  
実行時間 1,725 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 2,002 ms
コンパイル使用メモリ 162,564 KB
実行使用メモリ 4,776 KB
最終ジャッジ日時 2023-09-10 20:13:53
合計ジャッジ時間 11,057 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,380 KB
testcase_01 AC 3 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1,725 ms
4,376 KB
testcase_04 AC 4 ms
4,376 KB
testcase_05 AC 1,701 ms
4,380 KB
testcase_06 AC 1,703 ms
4,776 KB
testcase_07 AC 1,719 ms
4,376 KB
testcase_08 AC 1,720 ms
4,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int@K,@N,P=10**9+7,L=10**5,c[L+1]{},d[L+1]{1},t;rep(N){ll@x;c[x]--;}rep(i,K){t=d[i];REP(j,L-i+1)d[i+j]-=(d[i+j]+=t&c[j])<P?0:P;}wt(d[K]);
0