How to find the sum of all maximum sized sumfree subsets of a set? (N<=10^6)

Any method that will not give TLE for N==10^6 ? Only thing that I could find is the maximum size of sum free subset of a set is total number of odds in that set.

Can you elaborate on the problem?

1 Like