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