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