POJ1661
http://poj.org/problem?id=1661
HDU1074
http://acm.hdu.edu.cn/showproblem.php?pid=1074
Codeforce879C
二进制构造
http://codeforces.com/contest/879/problem/C