結果

問題 No.1082 XORのXOR
ユーザー kbyskbys
提出日時 2020-06-22 08:36:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 963 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 608 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 8,516 KB
最終ジャッジ日時 2023-09-16 19:09:04
合計ジャッジ時間 25,082 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,096 KB
testcase_01 AC 16 ms
8,280 KB
testcase_02 AC 16 ms
8,240 KB
testcase_03 AC 930 ms
8,360 KB
testcase_04 AC 903 ms
8,348 KB
testcase_05 AC 892 ms
8,484 KB
testcase_06 AC 931 ms
8,332 KB
testcase_07 AC 927 ms
8,492 KB
testcase_08 AC 918 ms
8,440 KB
testcase_09 AC 936 ms
8,320 KB
testcase_10 AC 930 ms
8,484 KB
testcase_11 AC 920 ms
8,436 KB
testcase_12 AC 900 ms
8,360 KB
testcase_13 AC 919 ms
8,492 KB
testcase_14 AC 914 ms
8,516 KB
testcase_15 AC 916 ms
8,344 KB
testcase_16 AC 928 ms
8,340 KB
testcase_17 AC 963 ms
8,348 KB
testcase_18 AC 950 ms
8,492 KB
testcase_19 AC 946 ms
8,264 KB
testcase_20 AC 922 ms
8,320 KB
testcase_21 AC 910 ms
8,368 KB
testcase_22 AC 897 ms
8,392 KB
testcase_23 AC 924 ms
8,472 KB
testcase_24 AC 940 ms
8,336 KB
testcase_25 AC 921 ms
8,436 KB
testcase_26 AC 932 ms
8,332 KB
testcase_27 AC 891 ms
8,368 KB
testcase_28 AC 15 ms
8,240 KB
testcase_29 AC 14 ms
8,232 KB
testcase_30 AC 15 ms
8,200 KB
testcase_31 AC 15 ms
8,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

N = int(input())
A = list(map(int,input().split()))

ans = 0
for c in itertools.combinations(A, 2):
    u, v = c
    ans = max(ans, u^v)
    
print(ans)
0