結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー fmhrfmhr
提出日時 2015-04-16 23:58:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 21,664 KB
最終ジャッジ日時 2023-09-17 16:21:56
合計ジャッジ時間 3,344 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,424 KB
testcase_01 AC 19 ms
8,516 KB
testcase_02 AC 19 ms
8,560 KB
testcase_03 WA -
testcase_04 AC 18 ms
8,424 KB
testcase_05 AC 19 ms
8,560 KB
testcase_06 WA -
testcase_07 AC 18 ms
8,556 KB
testcase_08 AC 54 ms
17,520 KB
testcase_09 AC 25 ms
10,324 KB
testcase_10 AC 45 ms
15,464 KB
testcase_11 AC 37 ms
13,708 KB
testcase_12 AC 60 ms
18,868 KB
testcase_13 AC 64 ms
20,396 KB
testcase_14 AC 44 ms
14,728 KB
testcase_15 AC 68 ms
20,688 KB
testcase_16 AC 58 ms
19,436 KB
testcase_17 AC 62 ms
19,384 KB
testcase_18 AC 18 ms
8,520 KB
testcase_19 AC 18 ms
8,408 KB
testcase_20 AC 45 ms
10,284 KB
testcase_21 AC 71 ms
21,004 KB
testcase_22 AC 71 ms
21,004 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 69 ms
21,560 KB
testcase_34 AC 68 ms
21,512 KB
testcase_35 AC 70 ms
20,972 KB
testcase_36 AC 70 ms
21,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
n = int(input())
a = list(map(int, input().split()))
or_sum = 0
for i in a:
    or_sum |= i

c = Counter(format(or_sum, 'b'))
print(2 ** c['1'])
0