結果

問題 No.2071 Shift and OR
ユーザー H20
提出日時 2022-09-16 21:39:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 82,412 KB
実行使用メモリ 106,048 KB
最終ジャッジ日時 2024-12-21 18:43:31
合計ジャッジ時間 3,281 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
cnt = 0
for a in A:
    cnt += format(a, 'b').count('1')
ans = 0
for i in range(15,15-min(16,cnt),-1):
    ans+=2**i
print(ans)
0