結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー fmhrfmhr
提出日時 2015-04-16 23:56:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 9,172 KB
最終ジャッジ日時 2023-09-17 21:18:20
合計ジャッジ時間 1,740 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,436 KB
testcase_01 AC 19 ms
8,432 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 19 ms
8,440 KB
testcase_06 WA -
testcase_07 AC 21 ms
8,980 KB
testcase_08 AC 21 ms
9,076 KB
testcase_09 AC 20 ms
8,940 KB
testcase_10 AC 20 ms
9,004 KB
testcase_11 AC 20 ms
9,032 KB
testcase_12 AC 19 ms
8,424 KB
testcase_13 AC 18 ms
8,452 KB
testcase_14 AC 19 ms
8,612 KB
testcase_15 AC 21 ms
9,172 KB
testcase_16 WA -
testcase_17 AC 19 ms
8,556 KB
testcase_18 AC 20 ms
8,936 KB
testcase_19 AC 19 ms
8,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding=utf-8
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