結果

問題 No.1082 XORのXOR
ユーザー roarisroaris
提出日時 2020-06-27 01:33:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 1,511 ms
コンパイル使用メモリ 86,524 KB
実行使用メモリ 76,608 KB
最終ジャッジ日時 2023-09-18 14:10:52
合計ジャッジ時間 4,291 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,136 KB
testcase_01 AC 76 ms
70,764 KB
testcase_02 AC 73 ms
71,016 KB
testcase_03 AC 86 ms
76,392 KB
testcase_04 AC 85 ms
76,236 KB
testcase_05 AC 85 ms
76,532 KB
testcase_06 AC 84 ms
76,236 KB
testcase_07 AC 83 ms
76,348 KB
testcase_08 AC 85 ms
76,540 KB
testcase_09 AC 83 ms
76,392 KB
testcase_10 AC 85 ms
76,132 KB
testcase_11 AC 87 ms
76,356 KB
testcase_12 AC 86 ms
76,388 KB
testcase_13 AC 88 ms
76,356 KB
testcase_14 AC 87 ms
76,476 KB
testcase_15 AC 86 ms
76,544 KB
testcase_16 AC 86 ms
76,556 KB
testcase_17 AC 86 ms
76,220 KB
testcase_18 AC 88 ms
76,048 KB
testcase_19 AC 85 ms
76,480 KB
testcase_20 AC 88 ms
76,200 KB
testcase_21 AC 84 ms
76,196 KB
testcase_22 AC 85 ms
76,396 KB
testcase_23 AC 86 ms
76,580 KB
testcase_24 AC 86 ms
76,228 KB
testcase_25 AC 85 ms
76,556 KB
testcase_26 AC 83 ms
76,608 KB
testcase_27 AC 88 ms
76,384 KB
testcase_28 AC 72 ms
71,148 KB
testcase_29 AC 73 ms
71,076 KB
testcase_30 AC 74 ms
71,108 KB
testcase_31 AC 74 ms
71,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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

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