摘要: //时间复杂度:O(nlogn) #include #include #include #include #include #include #include #include #include #include #include using namespace std; int Min(int *a, int len){ int min = 0; for (int i = 0... 阅读全文
posted @ 2019-04-04 15:55 gzu_zb 阅读(268) 评论(0) 推荐(0) 编辑
摘要: void Pern(int list[], int k, int n) { // k表示前k个数不动仅移动后面n-k位数 if (k == n - 1) { for (int i = 0; i < n; i++) { printf("%d", list[i]); } printf("\n"); } ... 阅读全文
posted @ 2019-04-04 15:38 gzu_zb 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 题目传送门:https://pintia.cn/problem-sets/994805046380707840/problems/1111914599412858889 题解: 阅读全文
posted @ 2019-04-04 11:34 gzu_zb 阅读(483) 评论(0) 推荐(0) 编辑