結果
| 問題 | No.1082 XORのXOR | 
| コンテスト | |
| ユーザー |  platinum | 
| 提出日時 | 2020-06-19 21:40:26 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 5 ms / 2,000 ms | 
| コード長 | 350 bytes | 
| コンパイル時間 | 1,748 ms | 
| コンパイル使用メモリ | 169,788 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-03 14:08:43 | 
| 合計ジャッジ時間 | 2,398 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 29 | 
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(int)(n); i++)
using namespace std;
using LL = long long;
using P = pair<int,int>;
int main(){
	int N;
	cin >> N;
	vector<LL> A(N);
	rep(i,N) cin >> A[i];
	int ans=0;
	rep(i,N){
		for(int j=i+1; j<N; j++){
			int res=A[i]^A[j];
			ans=max(ans,res);
		}
	}
	cout << ans << endl;
	return 0;
}
            
            
            
        