結果
| 問題 |
No.183 たのしい排他的論理和(EASY)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-08 22:14:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 514 ms |
| コンパイル使用メモリ | 82,400 KB |
| 実行使用メモリ | 848,788 KB |
| 最終ジャッジ日時 | 2025-05-08 22:14:14 |
| 合計ジャッジ時間 | 5,651 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 MLE * 1 -- * 12 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
MAX = 40000
dp = [[False] * (MAX) for _ in range(N+1)]
dp[0][0] = True
for i in range(N):
for j in range(MAX):
if not dp[i][j]:
continue
dp[i+1][j] = True
dp[i+1][j^A[i]] = True
print(sum(dp[N]))