CodeForces - 1005C Summarize to the Power of Two (贪心 + 离散化)
Summarize to the Power of TwoA sequence a1,a2,…,an is called good if, for each element ai, there exists an element aj (i≠j) such that ai+aj is a power of two (that is, 2d for some non-negative integ...