結果

問題 No.2711 Connecting Lights
ユーザー 👑 p-adicp-adic
提出日時 2024-04-05 17:00:51
言語 cLay
(20240104-1)
結果
AC  
実行時間 573 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 3,206 ms
コンパイル使用メモリ 177,024 KB
実行使用メモリ 18,304 KB
最終ジャッジ日時 2024-04-05 17:01:00
合計ジャッジ時間 8,849 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 1 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 4 ms
6,676 KB
testcase_06 AC 3 ms
6,676 KB
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 7 ms
6,676 KB
testcase_09 AC 332 ms
12,160 KB
testcase_10 AC 252 ms
10,240 KB
testcase_11 AC 460 ms
15,872 KB
testcase_12 AC 88 ms
8,192 KB
testcase_13 AC 110 ms
9,216 KB
testcase_14 AC 9 ms
6,676 KB
testcase_15 AC 51 ms
6,676 KB
testcase_16 AC 4 ms
6,676 KB
testcase_17 AC 5 ms
6,676 KB
testcase_18 AC 13 ms
6,676 KB
testcase_19 AC 363 ms
13,312 KB
testcase_20 AC 111 ms
9,472 KB
testcase_21 AC 5 ms
6,676 KB
testcase_22 AC 3 ms
6,676 KB
testcase_23 AC 3 ms
6,676 KB
testcase_24 AC 209 ms
8,960 KB
testcase_25 AC 260 ms
10,112 KB
testcase_26 AC 556 ms
18,304 KB
testcase_27 AC 573 ms
18,304 KB
testcase_28 AC 551 ms
18,304 KB
testcase_29 AC 551 ms
18,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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