結果

問題 No.1082 XORのXOR
ユーザー tyawanmusityawanmusi
提出日時 2020-05-22 18:08:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,076 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-15 10:26:45
合計ジャッジ時間 28,673 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,624 KB
testcase_01 AC 32 ms
10,496 KB
testcase_02 AC 33 ms
10,624 KB
testcase_03 AC 1,049 ms
11,008 KB
testcase_04 AC 1,062 ms
10,880 KB
testcase_05 AC 1,076 ms
10,880 KB
testcase_06 AC 1,075 ms
10,880 KB
testcase_07 AC 1,054 ms
10,880 KB
testcase_08 AC 1,046 ms
10,880 KB
testcase_09 AC 1,068 ms
10,880 KB
testcase_10 AC 1,061 ms
10,880 KB
testcase_11 AC 1,076 ms
10,880 KB
testcase_12 AC 1,036 ms
10,880 KB
testcase_13 AC 1,052 ms
10,880 KB
testcase_14 AC 1,053 ms
10,880 KB
testcase_15 AC 1,071 ms
10,752 KB
testcase_16 AC 1,072 ms
10,880 KB
testcase_17 AC 1,045 ms
10,880 KB
testcase_18 AC 1,055 ms
10,880 KB
testcase_19 AC 1,045 ms
10,880 KB
testcase_20 AC 1,044 ms
11,008 KB
testcase_21 AC 1,057 ms
10,752 KB
testcase_22 AC 1,059 ms
10,880 KB
testcase_23 AC 1,069 ms
10,752 KB
testcase_24 AC 1,067 ms
11,008 KB
testcase_25 AC 1,050 ms
10,880 KB
testcase_26 AC 1,076 ms
10,880 KB
testcase_27 AC 1,052 ms
10,880 KB
testcase_28 AC 34 ms
10,624 KB
testcase_29 AC 33 ms
10,752 KB
testcase_30 AC 34 ms
10,624 KB
testcase_31 AC 33 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# writer解
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