Codeforces Round #599 (Div. 1) C. Sum Balance(图+dp)
题目链接:https://codeforces.com/contest/1242/problem/C具体做法参照题解,记录一个子集当中dp的方法https://cp-algorithms.com/algebra/all-submasks.html代码:#include#definexxfirst#defineyysecond#definempmake_pair#definepbpush_backu