結果

問題 No.1082 XORのXOR
ユーザー marroncastlemarroncastle
提出日時 2020-06-19 21:53:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 524 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 8,460 KB
最終ジャッジ日時 2023-09-16 14:03:14
合計ジャッジ時間 14,474 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,092 KB
testcase_01 AC 15 ms
8,088 KB
testcase_02 AC 15 ms
8,172 KB
testcase_03 AC 519 ms
8,412 KB
testcase_04 AC 522 ms
8,256 KB
testcase_05 AC 521 ms
8,408 KB
testcase_06 AC 522 ms
8,408 KB
testcase_07 AC 522 ms
8,364 KB
testcase_08 AC 518 ms
8,460 KB
testcase_09 AC 519 ms
8,424 KB
testcase_10 AC 519 ms
8,372 KB
testcase_11 AC 519 ms
8,336 KB
testcase_12 AC 524 ms
8,256 KB
testcase_13 AC 520 ms
8,432 KB
testcase_14 AC 522 ms
8,320 KB
testcase_15 AC 522 ms
8,388 KB
testcase_16 AC 521 ms
8,316 KB
testcase_17 AC 521 ms
8,320 KB
testcase_18 AC 520 ms
8,384 KB
testcase_19 AC 518 ms
8,356 KB
testcase_20 AC 520 ms
8,256 KB
testcase_21 AC 520 ms
8,324 KB
testcase_22 AC 523 ms
8,436 KB
testcase_23 AC 520 ms
8,420 KB
testcase_24 AC 521 ms
8,316 KB
testcase_25 AC 524 ms
8,420 KB
testcase_26 AC 522 ms
8,404 KB
testcase_27 AC 524 ms
8,388 KB
testcase_28 AC 16 ms
8,128 KB
testcase_29 AC 16 ms
8,084 KB
testcase_30 AC 15 ms
8,152 KB
testcase_31 AC 16 ms
8,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import groupby, accumulate, product, permutations, combinations
def solve():
    ans = 0
    N = int(input())
    A = list(map(int, input().split()))
    for c in combinations(A,2):
        cnt = c[0]^c[1]
        ans = max(cnt,ans)
    return ans
print(solve())
0