結果

問題 No.2171 OR Assignment
ユーザー tailstails
提出日時 2022-12-23 15:25:49
言語 cLay
(20240104-1)
結果
AC  
実行時間 294 ms / 3,500 ms
コード長 243 bytes
コンパイル時間 2,276 ms
コンパイル使用メモリ 183,260 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-29 06:00:03
合計ジャッジ時間 6,949 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
testcase_09 AC 1 ms
5,376 KB
testcase_10 AC 1 ms
5,376 KB
testcase_11 AC 1 ms
5,376 KB
testcase_12 AC 52 ms
5,376 KB
testcase_13 AC 52 ms
5,376 KB
testcase_14 AC 52 ms
5,376 KB
testcase_15 AC 10 ms
5,376 KB
testcase_16 AC 14 ms
5,376 KB
testcase_17 AC 11 ms
5,376 KB
testcase_18 AC 152 ms
5,376 KB
testcase_19 AC 149 ms
5,376 KB
testcase_20 AC 254 ms
5,376 KB
testcase_21 AC 266 ms
5,376 KB
testcase_22 AC 294 ms
5,376 KB
testcase_23 AC 230 ms
5,376 KB
testcase_24 AC 292 ms
5,376 KB
testcase_25 AC 285 ms
5,376 KB
testcase_26 AC 285 ms
5,376 KB
testcase_27 AC 268 ms
5,376 KB
testcase_28 AC 269 ms
5,376 KB
testcase_29 AC 259 ms
5,376 KB
testcase_30 AC 229 ms
5,376 KB
testcase_31 AC 291 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
map<ll,Mint>m1;
m1[0]=1;
ll@n;
rep(n){
	decltype(m1)m2;
	ll@a;
	Mint y;
	for(auto x=m1.rbegin();x!=m1.rend();++x){
		m2[a|x->first]=y+=x->second;
	}
	m2[a]=y;
	m1=move(m2);
}
Mint z;
for(auto x:m1){
	z+=x.second;
}
wt(z);
0