結果
| 問題 | No.184 たのしい排他的論理和(HARD) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-17 00:19:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 92 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 817,824 KB |
| 最終ジャッジ日時 | 2024-07-04 11:15:34 |
| 合計ジャッジ時間 | 2,888 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 MLE * 1 |
| other | -- * 34 |
ソースコード
def read_data():
N = int(input())
A = map(int, input().split())
return N, A
def solve(N, A):
pool = set([0])
for a in A:
for p in pool.copy():
pool.add(p ^ a)
return len(pool)
N, A = read_data()
print(solve(N, A))