結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー tktk_snsntktk_snsn
提出日時 2021-01-05 07:57:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 82,028 KB
実行使用メモリ 98,228 KB
最終ジャッジ日時 2024-04-23 14:43:57
合計ジャッジ時間 4,858 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,584 KB
testcase_01 AC 38 ms
51,968 KB
testcase_02 AC 43 ms
58,624 KB
testcase_03 AC 37 ms
52,352 KB
testcase_04 AC 37 ms
51,968 KB
testcase_05 AC 38 ms
51,968 KB
testcase_06 AC 37 ms
52,096 KB
testcase_07 AC 42 ms
57,984 KB
testcase_08 AC 75 ms
94,464 KB
testcase_09 AC 47 ms
66,560 KB
testcase_10 AC 66 ms
86,912 KB
testcase_11 AC 58 ms
78,024 KB
testcase_12 AC 84 ms
90,544 KB
testcase_13 AC 84 ms
90,864 KB
testcase_14 AC 67 ms
86,016 KB
testcase_15 AC 89 ms
92,900 KB
testcase_16 AC 80 ms
88,960 KB
testcase_17 AC 85 ms
90,620 KB
testcase_18 AC 41 ms
57,856 KB
testcase_19 AC 38 ms
51,840 KB
testcase_20 AC 105 ms
88,192 KB
testcase_21 AC 89 ms
92,960 KB
testcase_22 AC 89 ms
93,236 KB
testcase_23 AC 38 ms
52,352 KB
testcase_24 AC 38 ms
51,584 KB
testcase_25 AC 38 ms
51,584 KB
testcase_26 AC 38 ms
51,840 KB
testcase_27 AC 38 ms
51,584 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 92 ms
92,928 KB
testcase_34 AC 87 ms
92,544 KB
testcase_35 AC 88 ms
93,056 KB
testcase_36 AC 88 ms
92,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

cnt = 0
for i in range(62):
    cnt += any((a >> i) & 1 for a in A)
cnt = min(len(set(A)), cnt)
print(pow(2, cnt))
0