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

Can you elaborate on the problem?

1 Like