結果

問題 No.1082 XORのXOR
ユーザー uni_pythonuni_python
提出日時 2020-06-19 21:42:01
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 361 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 76,576 KB
最終ジャッジ日時 2023-09-16 13:44:46
合計ジャッジ時間 4,264 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,316 KB
testcase_01 AC 67 ms
71,204 KB
testcase_02 AC 68 ms
71,292 KB
testcase_03 AC 88 ms
76,268 KB
testcase_04 AC 87 ms
76,272 KB
testcase_05 AC 87 ms
76,576 KB
testcase_06 AC 88 ms
76,112 KB
testcase_07 AC 87 ms
76,520 KB
testcase_08 AC 87 ms
76,460 KB
testcase_09 AC 86 ms
76,348 KB
testcase_10 AC 86 ms
76,384 KB
testcase_11 AC 85 ms
76,540 KB
testcase_12 AC 88 ms
76,400 KB
testcase_13 AC 86 ms
76,224 KB
testcase_14 AC 85 ms
76,432 KB
testcase_15 AC 85 ms
76,432 KB
testcase_16 AC 85 ms
76,340 KB
testcase_17 AC 84 ms
76,340 KB
testcase_18 AC 85 ms
76,532 KB
testcase_19 AC 85 ms
76,360 KB
testcase_20 AC 85 ms
76,484 KB
testcase_21 AC 87 ms
76,452 KB
testcase_22 AC 87 ms
76,484 KB
testcase_23 AC 85 ms
76,532 KB
testcase_24 AC 87 ms
76,448 KB
testcase_25 AC 87 ms
76,116 KB
testcase_26 AC 86 ms
76,116 KB
testcase_27 AC 86 ms
76,416 KB
testcase_28 AC 69 ms
71,200 KB
testcase_29 AC 68 ms
71,028 KB
testcase_30 AC 69 ms
71,372 KB
testcase_31 AC 67 ms
71,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
mod=10**9+7

def main():
    N=I()
    A=LI()
    ans=0
    for i in range(N):
        for j in range(N):
            temp=A[i]^A[j]
            ans=max(ans,temp)
            
    print(ans)
    


main()
0