結果
| 問題 |
No.183 たのしい排他的論理和(EASY)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-04 00:28:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 276,992 KB |
| 最終ジャッジ日時 | 2024-10-13 16:34:02 |
| 合計ジャッジ時間 | 7,316 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 TLE * 1 -- * 12 |
ソースコード
n = int(input())
a = list(map(int,input().split()))
from collections import Counter
import copy
dp = Counter()
dp[0] = 1
for i in range(n):
E = copy.deepcopy(dp)
for v in dp.keys():
E[v ^ a[i]] = 1
dp = E
print(len(dp.keys()))