結果

問題 No.1082 XORのXOR
ユーザー kept1994kept1994
提出日時 2021-08-28 16:55:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 81,876 KB
実行使用メモリ 75,836 KB
最終ジャッジ日時 2024-05-01 16:00:56
合計ジャッジ時間 4,505 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,356 KB
testcase_01 AC 38 ms
52,336 KB
testcase_02 AC 38 ms
52,632 KB
testcase_03 AC 114 ms
75,436 KB
testcase_04 AC 115 ms
75,044 KB
testcase_05 AC 117 ms
75,836 KB
testcase_06 AC 116 ms
75,344 KB
testcase_07 AC 115 ms
75,380 KB
testcase_08 AC 115 ms
75,296 KB
testcase_09 AC 117 ms
75,488 KB
testcase_10 AC 116 ms
75,428 KB
testcase_11 AC 115 ms
75,248 KB
testcase_12 AC 115 ms
75,788 KB
testcase_13 AC 115 ms
75,628 KB
testcase_14 AC 116 ms
75,376 KB
testcase_15 AC 115 ms
75,736 KB
testcase_16 AC 113 ms
75,264 KB
testcase_17 AC 113 ms
75,248 KB
testcase_18 AC 113 ms
75,372 KB
testcase_19 AC 113 ms
75,736 KB
testcase_20 AC 113 ms
75,356 KB
testcase_21 AC 114 ms
75,372 KB
testcase_22 AC 118 ms
75,492 KB
testcase_23 AC 109 ms
75,256 KB
testcase_24 AC 115 ms
75,312 KB
testcase_25 AC 114 ms
75,612 KB
testcase_26 AC 114 ms
75,784 KB
testcase_27 AC 115 ms
75,196 KB
testcase_28 AC 36 ms
52,340 KB
testcase_29 AC 35 ms
52,488 KB
testcase_30 AC 35 ms
53,772 KB
testcase_31 AC 34 ms
51,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    from itertools import combinations
    N = int(input())
    # N, K = map(int,input().split())
    A = list(map(int,input().split()))
    ans = 0
    for l in combinations(A, 2):
        ans = max(ans, l[0] ^ l[1])
    print(ans)

if __name__ == '__main__':
    main()
0