結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー |
|
提出日時 | 2021-12-24 15:14:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,760 KB |
最終ジャッジ日時 | 2024-09-19 13:42:39 |
合計ジャッジ時間 | 9,367 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 RE * 1 TLE * 1 -- * 11 |
ソースコード
N = int(input()) A = list(map(int,input().split())) dp = [0] * ((1 << 14) + 1) dp[0] = 1 dp[A[0]] = 1 for i in range(1,N): for j in range((1 << 14) + 1): if dp[j]: dp[j^A[i]] = 1 print(sum(dp))