排序
小菜鸡加油
菜鸡
什么都能折磨
展开
-
B. Towers
As you know, all the kids in Berland love playing with cubes. Little Petya hasntowers consisting of cubes of the same size. Tower with numbericonsists ofaicubes stacked one on top of the other. Petya defines theinstabilityof a set of towers as a v...原创 2020-08-04 11:09:19 · 228 阅读 · 0 评论 -
选择排序模板
怕明天C语言锁C++所以晚上手写下排序 #include<iostream> #include<vector> #include<queue> #include<cstring> #include<algorithm> using namespace std; const int maxn=1e5; typedef long long LL; LL a[maxn]; LL b[maxn]; void xzsort(LL a[],LL l,LL原创 2020-07-06 19:49:30 · 188 阅读 · 0 评论