結果

問題 No.1082 XORのXOR
ユーザー prd_xxxprd_xxx
提出日時 2020-06-19 21:26:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 87,244 KB
実行使用メモリ 76,796 KB
最終ジャッジ日時 2023-09-16 13:17:07
合計ジャッジ時間 4,111 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,336 KB
testcase_01 AC 69 ms
71,132 KB
testcase_02 AC 74 ms
71,188 KB
testcase_03 AC 81 ms
76,728 KB
testcase_04 AC 80 ms
76,760 KB
testcase_05 AC 81 ms
76,492 KB
testcase_06 AC 82 ms
76,728 KB
testcase_07 AC 80 ms
76,536 KB
testcase_08 AC 80 ms
76,732 KB
testcase_09 AC 78 ms
76,516 KB
testcase_10 AC 79 ms
76,504 KB
testcase_11 AC 81 ms
76,576 KB
testcase_12 AC 82 ms
76,504 KB
testcase_13 AC 84 ms
76,444 KB
testcase_14 AC 82 ms
76,368 KB
testcase_15 AC 86 ms
76,732 KB
testcase_16 AC 81 ms
76,796 KB
testcase_17 AC 81 ms
76,684 KB
testcase_18 AC 81 ms
76,772 KB
testcase_19 AC 80 ms
76,476 KB
testcase_20 AC 82 ms
76,728 KB
testcase_21 AC 83 ms
76,500 KB
testcase_22 AC 83 ms
76,560 KB
testcase_23 AC 81 ms
76,504 KB
testcase_24 AC 82 ms
76,504 KB
testcase_25 AC 82 ms
76,688 KB
testcase_26 AC 83 ms
76,464 KB
testcase_27 AC 83 ms
76,464 KB
testcase_28 AC 70 ms
71,256 KB
testcase_29 AC 70 ms
71,404 KB
testcase_30 AC 70 ms
71,372 KB
testcase_31 AC 72 ms
71,288 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