結果

問題 No.2071 Shift and OR
ユーザー 👑 H20H20
提出日時 2022-09-16 21:39:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 87,324 KB
実行使用メモリ 107,120 KB
最終ジャッジ日時 2023-08-23 14:38:30
合計ジャッジ時間 5,166 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,204 KB
testcase_01 AC 70 ms
71,392 KB
testcase_02 AC 70 ms
71,388 KB
testcase_03 AC 70 ms
71,500 KB
testcase_04 AC 71 ms
71,148 KB
testcase_05 AC 70 ms
71,316 KB
testcase_06 AC 69 ms
71,148 KB
testcase_07 WA -
testcase_08 AC 69 ms
71,500 KB
testcase_09 AC 70 ms
71,592 KB
testcase_10 AC 70 ms
71,512 KB
testcase_11 AC 69 ms
71,280 KB
testcase_12 AC 70 ms
71,284 KB
testcase_13 AC 70 ms
71,272 KB
testcase_14 AC 70 ms
71,180 KB
testcase_15 AC 70 ms
71,576 KB
testcase_16 AC 70 ms
71,372 KB
testcase_17 AC 72 ms
71,276 KB
testcase_18 WA -
testcase_19 AC 71 ms
71,184 KB
testcase_20 AC 71 ms
71,448 KB
testcase_21 AC 71 ms
71,140 KB
testcase_22 AC 71 ms
71,444 KB
testcase_23 AC 180 ms
103,580 KB
testcase_24 AC 87 ms
77,512 KB
testcase_25 AC 123 ms
88,408 KB
testcase_26 AC 133 ms
90,732 KB
testcase_27 AC 76 ms
76,492 KB
testcase_28 AC 189 ms
107,120 KB
testcase_29 AC 190 ms
107,072 KB
testcase_30 AC 71 ms
71,280 KB
testcase_31 AC 68 ms
71,180 KB
testcase_32 AC 71 ms
71,312 KB
testcase_33 AC 71 ms
71,348 KB
testcase_34 AC 71 ms
71,380 KB
testcase_35 AC 71 ms
71,468 KB
testcase_36 AC 70 ms
71,388 KB
testcase_37 AC 71 ms
71,204 KB
testcase_38 AC 72 ms
71,348 KB
testcase_39 AC 73 ms
71,284 KB
権限があれば一括ダウンロードができます

ソースコード

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