結果
| 問題 | No.184 たのしい排他的論理和(HARD) |
| コンテスト | |
| ユーザー |
tktk_snsn
|
| 提出日時 | 2021-01-05 07:57:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 168 bytes |
| 記録 | |
| コンパイル時間 | 657 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 98,492 KB |
| 最終ジャッジ日時 | 2024-10-15 15:03:24 |
| 合計ジャッジ時間 | 5,820 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 5 |
ソースコード
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))
tktk_snsn