This problem is in Contest(s) below:
Contest 1101:状态压缩DP
Contest 1323:状态压缩Dp
Contest 1361:状态压缩Dp及Tree Dp入门
Contest 1411:小朋友的状压dp