結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2015-08-18 18:40:48 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 41 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 13,852 KB |
最終ジャッジ日時 | 2024-07-18 10:13:37 |
合計ジャッジ時間 | 6,819 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 12 |
ソースコード
N = input() A = map(int, raw_input().strip().split()) dp = [False] * (1 << 15) dp[0] = True for a in A: for i in xrange(len(dp)): if dp[i]: dp[a ^ i] = True print(dp.count(True))