随笔分类 -  面试

 
一道google面试题
摘要:输入n,把1-n分成两个和相等的子集,有多少种分法想了个dp,直接背包也行#include #include using namespace std;int dp[55];int main() { int n; scanf("%d", &n); int s = n * (n + 1... 阅读全文
posted @ 2015-09-19 11:08 LegendaryAC 阅读(201) 评论(0) 推荐(0)