結果

問題 No.1082 XORのXOR
ユーザー NoneNone
提出日時 2021-03-13 17:50:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 82,452 KB
実行使用メモリ 63,132 KB
最終ジャッジ日時 2024-04-23 08:30:34
合計ジャッジ時間 2,883 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,260 KB
testcase_01 AC 33 ms
52,340 KB
testcase_02 AC 33 ms
52,440 KB
testcase_03 AC 45 ms
61,124 KB
testcase_04 AC 46 ms
62,144 KB
testcase_05 AC 46 ms
60,960 KB
testcase_06 AC 45 ms
61,012 KB
testcase_07 AC 45 ms
61,868 KB
testcase_08 AC 47 ms
61,544 KB
testcase_09 AC 45 ms
61,720 KB
testcase_10 AC 45 ms
62,276 KB
testcase_11 AC 46 ms
61,692 KB
testcase_12 AC 45 ms
61,244 KB
testcase_13 AC 45 ms
61,376 KB
testcase_14 AC 46 ms
61,504 KB
testcase_15 AC 44 ms
61,192 KB
testcase_16 AC 46 ms
61,260 KB
testcase_17 AC 45 ms
60,900 KB
testcase_18 AC 45 ms
61,544 KB
testcase_19 AC 46 ms
61,956 KB
testcase_20 AC 46 ms
61,452 KB
testcase_21 AC 46 ms
61,864 KB
testcase_22 AC 45 ms
62,016 KB
testcase_23 AC 46 ms
61,736 KB
testcase_24 AC 46 ms
62,928 KB
testcase_25 AC 50 ms
63,132 KB
testcase_26 AC 51 ms
61,144 KB
testcase_27 AC 50 ms
61,944 KB
testcase_28 AC 35 ms
52,960 KB
testcase_29 AC 37 ms
52,740 KB
testcase_30 AC 38 ms
52,204 KB
testcase_31 AC 31 ms
52,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int, input().split()))
res=0
for i in range(N):
    for j in range(i+1,N):
        a,b=A[i],A[j]
        res=max(res,a^b)
print(res)
0