結果
| 問題 |
No.183 たのしい排他的論理和(EASY)
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-07 18:30:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 5,000 ms |
| コード長 | 272 bytes |
| コンパイル時間 | 176 ms |
| コンパイル使用メモリ | 82,244 KB |
| 実行使用メモリ | 62,836 KB |
| 最終ジャッジ日時 | 2024-12-14 18:35:13 |
| 合計ジャッジ時間 | 1,794 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
def xor_basis(A):
basis = []
for a in A:
v = a
for b in basis:
v = min(v, v^b)
if v:
basis.append(v)
return basis
N = int(input())
A = list(map(int, input().split()))
print(pow(2, len(xor_basis(A))))
rlangevin