結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | ああいい |
提出日時 | 2022-03-17 23:59:27 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 67,456 KB |
最終ジャッジ日時 | 2024-10-01 22:52:19 |
合計ジャッジ時間 | 2,252 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 18 |
ソースコード
N = int(input()) A = list(map(int,input().split())) C = 1 << 15 dp = [0] * (C + 1) dp[0] = 1 for a in A: for j in range(C+1): dp[j^a] |= dp[j] print(sum(dp))