結果
| 問題 |
No.183 たのしい排他的論理和(EASY)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-05 22:57:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 18,204 KB |
| 最終ジャッジ日時 | 2024-07-07 08:48:37 |
| 合計ジャッジ時間 | 9,149 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 RE * 1 TLE * 1 -- * 11 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
dp = [0] * (2 ** 14 + 1)
dp[0] = 1
dp[A[0]] = 1
for i in range(1,N):
for j in range(2 ** 14 + 1):
if dp[j]:
dp[j ^ A[i]] = 1
count = 0
for i in range(2 ** 14 +1):
if dp[i]:count += 1
print(count)