正月看飞雪
正月看飞雪
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
正月看飞雪的博客
全部文章
(共3篇)
01背包求方案数裸题
01背包求方案数裸题, 将所有的歌的长度都存到a数组中, 遍历a数组,一重循环遍历物品, 二重循环遍历空间 #include <iostream> #include <cstring> #include <algorith...
2020-08-08
0
828
二分查找
#include <iostream> #include <cstring> #include <algorithm> #include <cmath> using namespace std; const int N = 100010; int ...
2020-08-08
1
745
牛牛and羊羊(C++版)
从大到小排序, 牛牛先选, 然后羊羊选, 就是奇数加在牛牛上, 偶数加在羊羊上,最后输出他们的差 #include <iostream> #include <cstring> #include <algorithm> using namespace std; c...
2020-08-08
0
737