結果

問題 No.2711 Connecting Lights
ユーザー 👑 p-adicp-adic
提出日時 2024-04-05 16:40:42
言語 cLay
(20240104-1)
結果
AC  
実行時間 947 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 3,388 ms
コンパイル使用メモリ 177,364 KB
実行使用メモリ 18,304 KB
最終ジャッジ日時 2024-04-05 16:40:55
合計ジャッジ時間 11,203 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
testcase_01 AC 1 ms
6,548 KB
testcase_02 AC 2 ms
6,548 KB
testcase_03 AC 2 ms
6,548 KB
testcase_04 AC 2 ms
6,548 KB
testcase_05 AC 5 ms
6,548 KB
testcase_06 AC 4 ms
6,548 KB
testcase_07 AC 2 ms
6,548 KB
testcase_08 AC 7 ms
6,548 KB
testcase_09 AC 508 ms
12,160 KB
testcase_10 AC 414 ms
10,240 KB
testcase_11 AC 735 ms
15,872 KB
testcase_12 AC 136 ms
8,192 KB
testcase_13 AC 174 ms
9,216 KB
testcase_14 AC 11 ms
6,548 KB
testcase_15 AC 85 ms
6,548 KB
testcase_16 AC 5 ms
6,548 KB
testcase_17 AC 6 ms
6,548 KB
testcase_18 AC 15 ms
6,548 KB
testcase_19 AC 591 ms
13,312 KB
testcase_20 AC 173 ms
9,472 KB
testcase_21 AC 5 ms
6,548 KB
testcase_22 AC 2 ms
6,548 KB
testcase_23 AC 2 ms
6,548 KB
testcase_24 AC 369 ms
8,960 KB
testcase_25 AC 413 ms
10,112 KB
testcase_26 AC 945 ms
18,304 KB
testcase_27 AC 947 ms
18,304 KB
testcase_28 AC 913 ms
18,304 KB
testcase_29 AC 937 ms
18,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@N,@M,@K,p=1<<N;Mint D[M][N+1][p];rep(s,p)D[0][N][s]=1;rep(m,1,M)rep(n,N+1)rep(s,p)rep(t,p)D[m][min(n,(sum[ll][d,0,N](((s&t)>>d)&1)))][t]+=D[m-1][n][s];wt(sum[n,K,N+1](sum[s,0,p](D[M-1][n][s])));
0