上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 171 下一页
摘要: 题目传送门 一、原始方法 #include<bits/stdc++.h> using namespace std; const int N = 1010; int a[N], c[N]; int main() { int n; scanf("%d", &n); for (int i = 1; i < 阅读全文
posted @ 2021-11-23 14:50 糖豆爸爸 阅读(240) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 10010; int a[N]; int n, cnt; int main() { cin >> n; for (int i = 1; i <= n; i++) cin 阅读全文
posted @ 2021-11-23 14:48 糖豆爸爸 阅读(92) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 20010; int a[N]; int main() { int n, b; cin >> n >> b;//b是书架的高度 for (int i = 1; i <= 阅读全文
posted @ 2021-11-23 14:46 糖豆爸爸 阅读(72) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; int n; const int N = 30; struct Node { string x; int num; } a[N]; bool cmp(const Node &A, const No 阅读全文
posted @ 2021-11-23 14:36 糖豆爸爸 阅读(126) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 310; int n; struct Student { int id, chinese, total; } a[N]; bool cmp(const Student 阅读全文
posted @ 2021-11-23 14:32 糖豆爸爸 阅读(132) 评论(0) 推荐(0)
摘要: 题目传送门 #include<bits/stdc++.h> using namespace std; const int N = 110; int a[N]; int main() { int n; cin >> n; for (int i = 0; i < n; i++) cin >> a[i]; 阅读全文
posted @ 2021-11-23 14:31 糖豆爸爸 阅读(60) 评论(0) 推荐(0)
摘要: 题目传送门 #include<bits/stdc++.h> using namespace std; const int N = 5000010; int a[N]; void quick_sort(int q[], int l, int r, int k) { if (l >= r)return; 阅读全文
posted @ 2021-11-23 13:51 糖豆爸爸 阅读(51) 评论(0) 推荐(0)
摘要: 题目传送门 #include<bits/stdc++.h> using namespace std; const int N = 100010; int a[N]; void quick_sort(int q[], int l, int r) { if (l >= r) return; int i 阅读全文
posted @ 2021-11-23 13:47 糖豆爸爸 阅读(49) 评论(0) 推荐(0)
摘要: 题目传送门 //P1271.cpp #include <bits/stdc++.h> using namespace std; const int N = 1010; int a[N]; int n, m, tmp; int main() { cin >> n >> m; for (int i = 阅读全文
posted @ 2021-11-23 13:46 糖豆爸爸 阅读(117) 评论(0) 推荐(0)
摘要: P1045 [NOIP2003 普及组] 麦森数 题目传送门 一、前导知识 高精度乘法 老师将高精乘高精,高精乘低精想办法合并成了一个模板 没错应该看的出来,高精度乘法其实就是一位一位去乘,然后按位存储在数组里面,思路差不多就是这样。 由于位数比较多,我们用字符串来进行输入,处理后按位存到整型数组中 阅读全文
posted @ 2021-11-22 15:54 糖豆爸爸 阅读(588) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 171 下一页
Live2D