結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー |
👑 ![]() |
提出日時 | 2020-11-13 15:53:19 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 448 ms / 5,000 ms |
コード長 | 175 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 82,500 KB |
実行使用メモリ | 64,084 KB |
最終ジャッジ日時 | 2024-07-22 20:03:33 |
合計ジャッジ時間 | 4,385 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
N=int(input())A=list(map(int,input().split()))T=1<<(max(A)-1).bit_length()DP=[0]*(2*T)DP[0]=1for a in A:for i in range(2*T):DP[i^a]|=DP[i]print(sum(DP))