結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2015-12-27 20:43:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 18,588 KB |
最終ジャッジ日時 | 2024-09-19 07:30:52 |
合計ジャッジ時間 | 7,327 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 12 |
ソースコード
N = int(input()) A = list(set(map(int, input().split()))) A.sort() max_v = 2**16 dp = [False] * (2**16) dp[0] = True for i in range(len(A)): for j in range(2**15): if not dp[j]: continue dp[j ^ A[i]] = True cnt = 0 for i in range(2**16): if dp[i]: cnt += 1 print(cnt)