結果

問題 No.1189 Sum is XOR
ユーザー tailstails
提出日時 2020-08-22 17:42:06
言語 cLay
(20231016-1)
結果
AC  
実行時間 1,202 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 2,326 ms
コンパイル使用メモリ 170,892 KB
実行使用メモリ 5,696 KB
最終ジャッジ日時 2023-09-19 01:03:01
合計ジャッジ時間 18,608 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,202 ms
5,696 KB
testcase_01 AC 1,199 ms
5,688 KB
testcase_02 AC 1,199 ms
5,696 KB
testcase_03 AC 571 ms
4,476 KB
testcase_04 AC 492 ms
4,420 KB
testcase_05 AC 824 ms
5,072 KB
testcase_06 AC 1,199 ms
5,692 KB
testcase_07 AC 659 ms
4,672 KB
testcase_08 AC 272 ms
4,384 KB
testcase_09 AC 276 ms
4,380 KB
testcase_10 AC 216 ms
4,384 KB
testcase_11 AC 226 ms
4,376 KB
testcase_12 AC 1,177 ms
5,652 KB
testcase_13 AC 1,000 ms
5,292 KB
testcase_14 AC 625 ms
4,580 KB
testcase_15 AC 231 ms
4,380 KB
testcase_16 AC 127 ms
4,380 KB
testcase_17 AC 213 ms
4,376 KB
testcase_18 AC 400 ms
4,380 KB
testcase_19 AC 838 ms
4,984 KB
testcase_20 AC 853 ms
5,012 KB
testcase_21 AC 1 ms
4,376 KB
testcase_22 AC 1 ms
4,388 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){
		rrep(j,10){
			rep(i,1024){
				if(!(i&h)){
					d[j+1][i|h]+=d[j][i];
				}
			}
		}
	}
	if(k<11){
		rep(i,1024){
			s+=d[k][i];
		}
	}
	wt(s);
}
0