結果
| 問題 | No.1082 XORのXOR | 
| コンテスト | |
| ユーザー |  pengin_2000 | 
| 提出日時 | 2021-10-26 00:31:18 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 6 ms / 2,000 ms | 
| コード長 | 281 bytes | 
| コンパイル時間 | 331 ms | 
| コンパイル使用メモリ | 29,184 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-04 00:16:08 | 
| 合計ジャッジ時間 | 1,652 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 29 | 
ソースコード
#include<stdio.h>
int main()
{
	int n;
	scanf("%d", &n);
	int i, j;
	int a[2003];
	for (i = 0; i < n; i++)
		scanf("%d", &a[i]);
	int ans = 0;
	for (i = 0; i < n; i++)
		for (j = 0; j < n; j++)
			if (ans < (a[i] ^ a[j]))
				ans = (a[i] ^ a[j]);
	printf("%d\n", ans);
	return 0;
}
            
            
            
        