- 博客(3)
- 收藏
- 关注
原创 poj 3398 Perfect Service
参考了lrj的代码,思路很清晰,让我自己写恐怕不会写得这么清晰。 顺便学习了一下vector,毕竟以前不怎么用c++。 Perfect Service//d[i][2] 都不是服务器 d[i][1] pearent is sever d[i][0] sever #include #include #include using namespace std; const int maxn =
2017-08-09 22:03:19
191
原创 poj 3342
按照lrj思路实现的树上dp,病后第一题,明天继续#include // 0 don't choose 1 choose #include #include #include using namespace std; int i,n; char a[205][30],ch[205][30]; int bo[205],d[205][5]; bool f[205][5]; int search(ch
2017-08-08 22:45:42
132
转载 poj 1015
转载请注明出处:優YoU http://blog.csdn.net/lyy289065406/article/details/6671105 题目大意:选出的m 个人,必须满足辩方总分D和控方总分P的差的绝对值|D-P|最小。如果有多种选择方案的 |D-P| 值相同,那么选辩控双方总分之和D+P最大的方案即可。 其实一开始并没有做对,参考了一个大神的博客,思路很好想,但是怎么推我还是不
2017-07-25 09:44:14
138
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人