Xiaoxina
Xiaoxina
全部文章
分类
题解(11)
归档
标签
去牛客网
登录
/
注册
Xiaoxina的博客
全部文章
(共2篇)
NC16618排座椅
贪心,用了点没必要的差分,最后用sort排序输出就好 #include<iostream> #include<vector> #include<algorithm> using namespace std; bool cmp(vector<int>...
排序
贪心
暴力
2021-03-31
0
460
注意K的范围和结果用long long 存
思路和其他答主一模一样,我发这篇题解的目的就是提醒各位,要注意k的范围!!!!!!!!!!!!!!!!! #include<iostream> #include<vector> #include<algorithm> using namespace std; ...
排序
枚举
贪心
暴力
位运算
2021-03-29
0
620