摘要: 贪心想了两个小时 想到怀疑人生 其实是一个简单的$dp$ $dp[i][0]$表示不选父边 $dp[i][1]$表示选 那么儿子排个序贪心一下就行了 感觉头铁总是会凉 一个想法不行要尝试换一下 #include <bits/stdc++.h> using namespace std; using l 阅读全文
posted @ 2020-02-04 10:36 19992147 阅读(179) 评论(0) 推荐(0) 编辑
摘要: A 枚举一下 #include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; int ans = 0; if(x == 1) { ans += 300000; } if(x == 2) { ans 阅读全文
posted @ 2020-02-04 10:24 19992147 阅读(265) 评论(0) 推荐(0) 编辑