結果

問題 No.2071 Shift and OR
ユーザー ニックネームニックネーム
提出日時 2022-09-16 21:54:57
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 271 ms
使用メモリ 97,992 KB
最終ジャッジ日時 2023-01-11 06:41:41
合計ジャッジ時間 7,005 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 73 ms
75,784 KB
testcase_01 AC 79 ms
80,960 KB
testcase_02 AC 87 ms
83,552 KB
testcase_03 AC 141 ms
94,016 KB
testcase_04 AC 106 ms
89,404 KB
testcase_05 AC 168 ms
97,084 KB
testcase_06 AC 114 ms
90,772 KB
testcase_07 AC 92 ms
85,280 KB
testcase_08 AC 96 ms
85,376 KB
testcase_09 AC 111 ms
90,692 KB
testcase_10 AC 118 ms
91,748 KB
testcase_11 AC 178 ms
97,296 KB
testcase_12 AC 203 ms
97,992 KB
testcase_13 AC 151 ms
95,600 KB
testcase_14 AC 74 ms
75,768 KB
testcase_15 AC 167 ms
97,252 KB
testcase_16 AC 163 ms
95,996 KB
testcase_17 AC 159 ms
95,936 KB
testcase_18 AC 82 ms
80,800 KB
testcase_19 AC 173 ms
97,640 KB
testcase_20 AC 138 ms
93,668 KB
testcase_21 AC 160 ms
95,828 KB
testcase_22 AC 169 ms
97,440 KB
testcase_23 AC 104 ms
95,412 KB
testcase_24 AC 83 ms
80,780 KB
testcase_25 AC 89 ms
87,340 KB
testcase_26 AC 92 ms
88,496 KB
testcase_27 AC 80 ms
80,776 KB
testcase_28 AC 105 ms
97,776 KB
testcase_29 AC 106 ms
97,320 KB
testcase_30 AC 141 ms
94,772 KB
testcase_31 AC 99 ms
85,752 KB
testcase_32 AC 105 ms
88,660 KB
testcase_33 AC 110 ms
88,844 KB
testcase_34 AC 116 ms
88,828 KB
testcase_35 AC 121 ms
92,208 KB
testcase_36 AC 135 ms
93,608 KB
testcase_37 AC 115 ms
90,688 KB
testcase_38 AC 110 ms
88,684 KB
testcase_39 AC 107 ms
88,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = {0}
for u in (map(int, input().split())):
    for v in set(ans):
        for _ in range(16):
            u = u//2+u%2*2**15
            ans.add(u|v)
    if 2**16-1 in ans: break
print(max(ans))
0