摘要: 点击查看代码 #include<iostream> #include<vector> #include<algorithm> using namespace std; vector<int> div(vector<int>& A, int b, int &r) { vector<int> C; fo 阅读全文
posted @ 2022-04-25 21:57 wKingYu 阅读(37) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<vector> using namespace std; vector<int> mul(vector<int>& A, int b) { vector<int> C; int t = 0; for (int i = 0; i < 阅读全文
posted @ 2022-04-25 21:21 wKingYu 阅读(24) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<vector> using namespace std; bool cmp(vector<int>& A, vector<int>& B) { if (A.size() != B.size()) return A.size() > 阅读全文
posted @ 2022-04-25 21:04 wKingYu 阅读(51) 评论(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 阅读全文
posted @ 2022-04-25 20:12 wKingYu 阅读(44) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; int main() { double x; scanf("%lf", &x); double l = -1e5, r = 1e5; while (r - l > 1e-8) { double mid = 阅读全文
posted @ 2022-04-25 00:18 wKingYu 阅读(34) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 1e5 + 10; int a[N]; int main() { int n, k; scanf("%d %d", &n, &k); for (int i = 0; i < n; 阅读全文
posted @ 2022-04-25 00:03 wKingYu 阅读(48) 评论(0) 推荐(0)