結果
| 問題 | No.1082 XORのXOR | 
| コンテスト | |
| ユーザー |  risujiroh | 
| 提出日時 | 2020-06-19 21:23:22 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 7 ms / 2,000 ms | 
| コード長 | 399 bytes | 
| コンパイル時間 | 2,888 ms | 
| コンパイル使用メモリ | 192,692 KB | 
| 最終ジャッジ日時 | 2025-01-11 05:37:57 | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 29 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "debug.h"
#else
#define DEBUG(...)
#endif
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto&& e : a) cin >> e;
  int res = 0;
  for (int j = 0; j < n; ++j) {
    for (int i = 0; i < j; ++i) {
      res = max(res, a[i] ^ a[j]);
    }
  }
  cout << res << '\n';
}
            
            
            
        