結果

問題 No.1082 XORのXOR
ユーザー takakintakakin
提出日時 2020-06-19 22:20:37
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 897 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 8,108 KB
最終ジャッジ日時 2023-09-16 14:39:16
合計ジャッジ時間 23,299 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,996 KB
testcase_01 AC 16 ms
7,948 KB
testcase_02 AC 16 ms
7,992 KB
testcase_03 AC 874 ms
7,908 KB
testcase_04 AC 827 ms
7,956 KB
testcase_05 AC 847 ms
8,108 KB
testcase_06 AC 841 ms
7,964 KB
testcase_07 AC 832 ms
8,008 KB
testcase_08 AC 856 ms
7,956 KB
testcase_09 AC 866 ms
8,016 KB
testcase_10 AC 866 ms
7,944 KB
testcase_11 AC 886 ms
7,944 KB
testcase_12 AC 855 ms
7,992 KB
testcase_13 AC 888 ms
8,056 KB
testcase_14 AC 873 ms
8,104 KB
testcase_15 AC 848 ms
8,004 KB
testcase_16 AC 849 ms
8,020 KB
testcase_17 AC 843 ms
8,012 KB
testcase_18 AC 831 ms
7,948 KB
testcase_19 AC 879 ms
8,056 KB
testcase_20 AC 870 ms
8,016 KB
testcase_21 AC 826 ms
7,952 KB
testcase_22 AC 874 ms
7,908 KB
testcase_23 AC 889 ms
7,968 KB
testcase_24 AC 871 ms
8,060 KB
testcase_25 AC 831 ms
8,068 KB
testcase_26 AC 897 ms
7,960 KB
testcase_27 AC 826 ms
7,872 KB
testcase_28 AC 16 ms
7,964 KB
testcase_29 AC 16 ms
7,888 KB
testcase_30 AC 16 ms
7,872 KB
testcase_31 AC 16 ms
8,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,heapq
input = sys.stdin.buffer.readline
n=int(input())
A=[int(i) for i in 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