結果
| 問題 |
No.130 XOR Minimax
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-24 22:54:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 324 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 205,748 KB |
| 最終ジャッジ日時 | 2024-11-26 23:31:10 |
| 合計ジャッジ時間 | 4,291 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 4 |
ソースコード
N=int(input())
A=list(map(int, input().split()))
M=max(A)
L=M.bit_length()
for i in range(L)[::-1]:
B=[]
for a in A:
B.append(a^(1<<i))
temp=max(B)
if temp<=M:
M=temp
A=B
print(M)