結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー fmhr
提出日時 2015-04-16 23:56:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-07-04 15:15:14
合計ジャッジ時間 1,389 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 WA * 5
権限があれば一括ダウンロードができます

ソースコード

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