結果

問題 No.2171 OR Assignment
ユーザー 👑 p-adicp-adic
提出日時 2023-06-23 08:45:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 29,968 KB
最終ジャッジ日時 2023-09-13 03:46:58
合計ジャッジ時間 19,046 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,756 KB
testcase_01 AC 16 ms
7,780 KB
testcase_02 AC 14 ms
7,780 KB
testcase_03 AC 15 ms
7,764 KB
testcase_04 AC 16 ms
7,768 KB
testcase_05 AC 15 ms
7,944 KB
testcase_06 AC 15 ms
7,892 KB
testcase_07 WA -
testcase_08 AC 14 ms
7,780 KB
testcase_09 WA -
testcase_10 AC 14 ms
7,856 KB
testcase_11 AC 14 ms
7,924 KB
testcase_12 AC 1,191 ms
29,840 KB
testcase_13 AC 1,160 ms
29,896 KB
testcase_14 AC 1,186 ms
29,968 KB
testcase_15 WA -
testcase_16 AC 657 ms
12,196 KB
testcase_17 AC 657 ms
29,876 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 TLE -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

I=input
L=I()
L=1<<30
B=[[0,1]]
for a in list(map(int,I().split()))+[0]:
	s,c,C=0,L,[]
	for b in B:s,c,C=(s+b[1])%998244353,a|b[0],C+[[],[[c,s]]][c>a|b[0]]
	B=C+[[c,s],[a,[0,s][c>a]]]
print(B[-1][1])
0