結果
| 問題 |
No.183 たのしい排他的論理和(EASY)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-08 22:16:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 2,910 ms / 5,000 ms |
| コード長 | 245 bytes |
| コンパイル時間 | 534 ms |
| コンパイル使用メモリ | 82,272 KB |
| 実行使用メモリ | 260,052 KB |
| 最終ジャッジ日時 | 2025-05-08 22:17:10 |
| 合計ジャッジ時間 | 19,544 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
MAX = 40000
dp = [False] * MAX
dp[0] = True
for i in range(N):
tmp = dp[::]
for j in range(MAX):
if not tmp[j]:
continue
dp[j] = True
dp[j^A[i]] = True
print(sum(dp))