結果

問題 No.1082 XORのXOR
ユーザー nohakai3nohakai3
提出日時 2022-11-04 20:56:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 1,318 ms
コンパイル使用メモリ 86,692 KB
実行使用メモリ 76,772 KB
最終ジャッジ日時 2023-09-25 23:09:11
合計ジャッジ時間 4,708 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,184 KB
testcase_01 AC 71 ms
71,204 KB
testcase_02 AC 71 ms
71,224 KB
testcase_03 AC 92 ms
76,536 KB
testcase_04 AC 95 ms
76,660 KB
testcase_05 AC 92 ms
76,580 KB
testcase_06 AC 90 ms
76,600 KB
testcase_07 AC 91 ms
76,672 KB
testcase_08 AC 92 ms
76,696 KB
testcase_09 AC 90 ms
76,736 KB
testcase_10 AC 90 ms
76,572 KB
testcase_11 AC 91 ms
76,288 KB
testcase_12 AC 90 ms
76,440 KB
testcase_13 AC 91 ms
76,580 KB
testcase_14 AC 89 ms
76,316 KB
testcase_15 AC 91 ms
76,504 KB
testcase_16 AC 91 ms
76,604 KB
testcase_17 AC 92 ms
76,636 KB
testcase_18 AC 91 ms
76,656 KB
testcase_19 AC 90 ms
76,672 KB
testcase_20 AC 90 ms
76,320 KB
testcase_21 AC 93 ms
76,644 KB
testcase_22 AC 92 ms
76,692 KB
testcase_23 AC 93 ms
76,324 KB
testcase_24 AC 91 ms
76,772 KB
testcase_25 AC 93 ms
76,552 KB
testcase_26 AC 92 ms
76,684 KB
testcase_27 AC 89 ms
76,672 KB
testcase_28 AC 69 ms
71,248 KB
testcase_29 AC 70 ms
71,456 KB
testcase_30 AC 70 ms
71,068 KB
testcase_31 AC 73 ms
71,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
A=list(map(int,input().split()))
ans=0
for i in range(n):
    for j in range(n):
        if i!=j:
            ans=max(ans,A[i]^A[j])

print(ans)
0