結果
| 問題 | No.130 XOR Minimax |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-24 22:54:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 360 ms |
| コンパイル使用メモリ | 85,560 KB |
| 実行使用メモリ | 217,400 KB |
| 最終ジャッジ日時 | 2026-05-21 07:23:44 |
| 合計ジャッジ時間 | 3,361 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)