結果

問題 No.2071 Shift and OR
ユーザー ニックネームニックネーム
提出日時 2022-09-16 21:54:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 213 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 95,224 KB
最終ジャッジ日時 2023-08-23 15:18:18
合計ジャッジ時間 7,023 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,752 KB
testcase_01 AC 81 ms
75,868 KB
testcase_02 AC 84 ms
78,792 KB
testcase_03 AC 145 ms
89,288 KB
testcase_04 AC 103 ms
84,604 KB
testcase_05 AC 169 ms
92,644 KB
testcase_06 AC 114 ms
85,956 KB
testcase_07 AC 87 ms
80,700 KB
testcase_08 AC 94 ms
80,752 KB
testcase_09 AC 109 ms
85,796 KB
testcase_10 AC 118 ms
87,184 KB
testcase_11 AC 179 ms
92,784 KB
testcase_12 AC 213 ms
95,224 KB
testcase_13 AC 152 ms
90,588 KB
testcase_14 AC 71 ms
71,008 KB
testcase_15 AC 171 ms
92,480 KB
testcase_16 AC 168 ms
91,292 KB
testcase_17 AC 162 ms
91,128 KB
testcase_18 AC 78 ms
75,980 KB
testcase_19 AC 178 ms
92,620 KB
testcase_20 AC 140 ms
89,088 KB
testcase_21 AC 166 ms
91,036 KB
testcase_22 AC 170 ms
92,424 KB
testcase_23 AC 96 ms
90,632 KB
testcase_24 AC 79 ms
76,272 KB
testcase_25 AC 86 ms
82,276 KB
testcase_26 AC 88 ms
83,420 KB
testcase_27 AC 76 ms
75,944 KB
testcase_28 AC 100 ms
92,736 KB
testcase_29 AC 99 ms
92,808 KB
testcase_30 AC 142 ms
90,140 KB
testcase_31 AC 100 ms
81,376 KB
testcase_32 AC 105 ms
83,716 KB
testcase_33 AC 109 ms
83,912 KB
testcase_34 AC 117 ms
84,500 KB
testcase_35 AC 123 ms
87,232 KB
testcase_36 AC 138 ms
89,364 KB
testcase_37 AC 115 ms
85,856 KB
testcase_38 AC 109 ms
83,908 KB
testcase_39 AC 107 ms
83,860 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