AtCoder Beginner Contest 80 - C - Shopping Street
#AtCoder
#bit全探索
https://atcoder.jp/contests/abc080/tasks/abc080_c
問題が少し複雑だけど、典型的bit全探索で良い