結果
| 問題 | No.183 たのしい排他的論理和(EASY) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-11 21:50:03 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 69,888 KB |
| 最終ジャッジ日時 | 2026-04-30 18:00:04 |
| 合計ジャッジ時間 | 2,935 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 RE * 3 |
ソースコード
n = int(input())
A = list(map(int,input().split()))
dp = [0]*(2**14+1)
dp[0] = 1
for a in A:
for i in range(2**14+1):
if dp[i]:
dp[i^a] = 1
print(sum(dp))