結果

問題 No.1082 XORのXOR
ユーザー brthyyjpbrthyyjp
提出日時 2020-06-25 00:24:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 1,407 ms
コンパイル使用メモリ 86,788 KB
実行使用メモリ 76,628 KB
最終ジャッジ日時 2023-09-16 21:29:50
合計ジャッジ時間 3,894 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,096 KB
testcase_01 AC 63 ms
71,092 KB
testcase_02 AC 64 ms
71,136 KB
testcase_03 AC 75 ms
76,540 KB
testcase_04 AC 76 ms
76,532 KB
testcase_05 AC 73 ms
76,528 KB
testcase_06 AC 77 ms
76,624 KB
testcase_07 AC 72 ms
76,160 KB
testcase_08 AC 72 ms
76,496 KB
testcase_09 AC 75 ms
76,528 KB
testcase_10 AC 75 ms
76,492 KB
testcase_11 AC 75 ms
76,492 KB
testcase_12 AC 75 ms
76,484 KB
testcase_13 AC 73 ms
76,620 KB
testcase_14 AC 73 ms
76,384 KB
testcase_15 AC 74 ms
76,380 KB
testcase_16 AC 73 ms
76,368 KB
testcase_17 AC 75 ms
76,560 KB
testcase_18 AC 72 ms
76,484 KB
testcase_19 AC 71 ms
76,112 KB
testcase_20 AC 74 ms
76,384 KB
testcase_21 AC 73 ms
76,388 KB
testcase_22 AC 73 ms
76,508 KB
testcase_23 AC 76 ms
76,628 KB
testcase_24 AC 77 ms
76,272 KB
testcase_25 AC 78 ms
76,156 KB
testcase_26 AC 77 ms
76,384 KB
testcase_27 AC 75 ms
76,456 KB
testcase_28 AC 65 ms
71,300 KB
testcase_29 AC 66 ms
71,384 KB
testcase_30 AC 65 ms
71,136 KB
testcase_31 AC 64 ms
71,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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