結果

問題 No.1189 Sum is XOR
ユーザー tailstails
提出日時 2020-08-22 17:44:32
言語 cLay
(20240104-1)
結果
AC  
実行時間 400 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 2,186 ms
コンパイル使用メモリ 172,880 KB
実行使用メモリ 5,844 KB
最終ジャッジ日時 2023-09-19 01:02:42
合計ジャッジ時間 9,680 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 397 ms
5,728 KB
testcase_01 AC 399 ms
5,768 KB
testcase_02 AC 396 ms
5,844 KB
testcase_03 AC 188 ms
4,576 KB
testcase_04 AC 161 ms
4,420 KB
testcase_05 AC 278 ms
5,120 KB
testcase_06 AC 400 ms
5,668 KB
testcase_07 AC 222 ms
4,676 KB
testcase_08 AC 90 ms
4,376 KB
testcase_09 AC 93 ms
4,376 KB
testcase_10 AC 73 ms
4,380 KB
testcase_11 AC 78 ms
4,380 KB
testcase_12 AC 395 ms
5,664 KB
testcase_13 AC 333 ms
5,312 KB
testcase_14 AC 210 ms
4,616 KB
testcase_15 AC 78 ms
4,380 KB
testcase_16 AC 43 ms
4,380 KB
testcase_17 AC 72 ms
4,380 KB
testcase_18 AC 134 ms
4,376 KB
testcase_19 AC 282 ms
4,988 KB
testcase_20 AC 287 ms
5,028 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll n,k,a[2d5];
Mint s,d[11][1024];
{
	rd(n,k,a(n));
	d[0][0]=1;
	rep[a](h,n){
		rep(i,1024){
			if(!(i&h)){
				rrep(j,10){
					d[j+1][i|h]+=d[j][i];
				}
			}
		}
	}
	if(k<11){
		rep(i,1024){
			s+=d[k][i];
		}
	}
	wt(s);
}
0