結果

問題 No.1082 XORのXOR
ユーザー ronpooronpoo
提出日時 2023-09-19 10:41:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 1,371 ms
コンパイル使用メモリ 86,976 KB
実行使用メモリ 76,812 KB
最終ジャッジ日時 2023-09-19 10:41:32
合計ジャッジ時間 6,171 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,380 KB
testcase_01 AC 76 ms
71,412 KB
testcase_02 AC 77 ms
71,160 KB
testcase_03 AC 95 ms
76,668 KB
testcase_04 AC 92 ms
76,700 KB
testcase_05 AC 89 ms
76,596 KB
testcase_06 AC 86 ms
76,764 KB
testcase_07 AC 87 ms
76,652 KB
testcase_08 AC 87 ms
76,700 KB
testcase_09 AC 86 ms
76,356 KB
testcase_10 AC 85 ms
76,680 KB
testcase_11 AC 84 ms
76,684 KB
testcase_12 AC 89 ms
76,632 KB
testcase_13 AC 88 ms
76,704 KB
testcase_14 AC 90 ms
76,644 KB
testcase_15 AC 92 ms
76,564 KB
testcase_16 AC 86 ms
76,736 KB
testcase_17 AC 87 ms
76,652 KB
testcase_18 AC 87 ms
76,724 KB
testcase_19 AC 88 ms
76,772 KB
testcase_20 AC 87 ms
76,652 KB
testcase_21 AC 90 ms
76,648 KB
testcase_22 AC 88 ms
76,612 KB
testcase_23 AC 90 ms
76,748 KB
testcase_24 AC 90 ms
76,576 KB
testcase_25 AC 88 ms
76,616 KB
testcase_26 AC 92 ms
76,812 KB
testcase_27 AC 87 ms
76,600 KB
testcase_28 AC 74 ms
71,372 KB
testcase_29 AC 75 ms
71,332 KB
testcase_30 AC 75 ms
71,508 KB
testcase_31 AC 75 ms
71,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))

ans = 0
for i in range(N-1):
    for j in range(i+1, N):
        ans = max(ans, A[i] ^ A[j])
        
print(ans)
0