题解:AT_arc198_a [ARC198A] I hate 1

· · 题解

当 N=1,答案为 \{1\}。

注意两个性质:

发现 1\sim N 中所有偶数是符合要求的,所以答案上界是 \lfloor\frac{N}{2}\rfloor。