上一页 1 2 3 4 5 6 ··· 56 下一页
摘要: #include <iostream> #include <vector> using namespace std; bool cmp(vector<int> A, vector<int> B) { if (A.size() != B.size()) return A.size() > B.size 阅读全文
posted @ 2021-08-28 17:55 青衫客36 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> using namespace std; vector<int> add(vector<int> A, vector<int> B) { vector<int> C; int t = 0; for (int i = 0; i 阅读全文
posted @ 2021-08-28 17:54 青衫客36 阅读(22) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <cmath> int main() { double x; scanf("%lf", &x); double l = -10000, r = 10000; while (r - l > 1e-8) { double mid = (l + r) 阅读全文
posted @ 2021-08-28 17:53 青衫客36 阅读(47) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; const int N = 1e5 + 10; int n, m; int q[N]; int main() { cin >> n >> m; for (int i = 0; i < n; ++ i) cin >> q 阅读全文
posted @ 2021-08-28 17:52 青衫客36 阅读(29) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; const int N = 1e6 + 10; int n; int q[N], tmp[N]; long long cnt; void merge_sort(int q[], int l, int r) { if ( 阅读全文
posted @ 2021-08-28 17:50 青衫客36 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; const int N = 1e6 + 10; int n; int q[N], tmp[N]; void merge_sort(int q[], int l, int r) { if (l >= r) return 阅读全文
posted @ 2021-08-28 17:49 青衫客36 阅读(14) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; const int N = 1e6 + 10; int n, k; int q[N]; int quick_sort(int l, int r, int k) { if (l == r) return q[l]; in 阅读全文
posted @ 2021-08-28 17:48 青衫客36 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; const int N = 1e5 + 10; int n; int q[N]; void quick_sort(int q[], int l, int r) { if (l >= r) return ; int i 阅读全文
posted @ 2021-08-28 17:47 青衫客36 阅读(12) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; const int N = 1e5 + 10, M = 1e6 + 10; char buffs[N], buffp[N], p[N], s[M]; int n, m; int ne[N 阅读全文
posted @ 2021-07-15 19:07 青衫客36 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 问题 在用csv.writer().writerow()写入文件时, 会产生空白行 解决方法: 在open()函数内部加上一个参数“ newline='' ”, f = open("data.csv", mode="w", newline='', encoding="utf-8") 阅读全文
posted @ 2021-05-24 11:56 青衫客36 阅读(106) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 56 下一页