摘要:
选择排序 // // Created by 29273 on 2022-03-16. // #include "bits/stdc++.h" using namespace std; int n; int a[100]; void selectSort() { for (int i = 1; i < 阅读全文
posted @ 2022-03-16 16:12
沃特艾文儿
阅读(21)
评论(0)
推荐(0)
摘要:
冒泡排序 // // Created by 29273 on 2022-03-16. // #include "bits/stdc++.h" using namespace std; int a[100]; int n; void bubbleSort() { int flag; for (int 阅读全文
posted @ 2022-03-16 15:54
沃特艾文儿
阅读(49)
评论(0)
推荐(0)
摘要:
二分查找模板 // // Created by 29273 on 2022-03-16. // #include "bits/stdc++.h" using namespace std; int n,x; int a[100]; int binarySearch(int x) { int low = 阅读全文
posted @ 2022-03-16 15:29
沃特艾文儿
阅读(13)
评论(0)
推荐(0)
摘要:
仅作记录,拓扑模板 // // Created by 29273 on 2022-03-16. // #include "bits/stdc++.h" using namespace std; const int maxN = 1e4 + 10; vector<int> V[maxN]; vecto 阅读全文
posted @ 2022-03-16 15:02
沃特艾文儿
阅读(22)
评论(0)
推荐(0)
摘要:
最短路prim算法模板,仅作记录 // // Created by 29273 on 2022-02-23. // Prim 最短路径算法模板 #include<iostream> #include "bits/stdc++.h" using namespace std; const int max 阅读全文
posted @ 2022-03-16 11:09
沃特艾文儿
阅读(30)
评论(0)
推荐(0)

浙公网安备 33010602011771号