摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 18:00 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int sum = 0; for(int i = 1;i <= n;i++) { int x; cin >> x; sum += x; //把每一个输 阅读全文
posted @ 2024-06-28 17:59 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:58 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:56 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:55 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:52 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:51 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: a56爆大奖在线娱乐比较喜欢解法二的for 解法1:while循环 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { int n, 阅读全文
posted @ 2024-06-28 17:47 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 主要就是让你学会如何循环范围、奇数范围、偶数范围 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { for(in 阅读全文
posted @ 2024-06-28 17:45 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 结构体排序参考资料:https://blog.csdn.net/weixin_44959377/article/details/102381323需要掌握的知识点有:1.掌握结构体的定义2.定义结构体数组3.自定义结构体排序函数4.掌握sort函数的应用5.掌握cmp自定义比较函数的应用 题号 题目 阅读全文
posted @ 2024-06-28 17:36 CRt0729 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 孩子,别被误导了,结构体数组,咱们可以开两个的^^ #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 阅读全文
posted @ 2024-06-28 17:34 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 喜欢这么多条件判断的程序嘛?^^ #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,i 阅读全文
posted @ 2024-06-28 17:33 CRt0729 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; struct node{ int yw,sx,yy,zf,id; }; node a[301]; bool comp(node a,node b) { //总分高优先,总分相同,语文成绩高优先,语文相同,顺序小 阅读全文
posted @ 2024-06-28 17:30 CRt0729 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; struct node{ int yw,sx,yy,zf,id; //yw语文、sx数学、yy英语、zf总分、id顺序 }; node a[301]; bool comp(node a,node b) { // 阅读全文
posted @ 2024-06-28 17:28 CRt0729 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:27 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 17:26 CRt0729 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 这里的基础语法的课程大纲及对应的题单题解,有链接就是a56爆大奖在线娱乐发了,没有了就是a56爆大奖在线娱乐懒了^^,欢迎催更 课程名称 题解链接 初识C++ 顺序结构 选择结构 循环结构 嵌套循环 一维数组 二维数组 字符数组 字符串 函数 结构体排序 /jyssh/p/18274023 阅读全文
posted @ 2024-06-28 17:19 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 这里是各个算法的超链接,有就有,没有就是笔者懒了,欢迎催更^^ 时间复杂度 枚举 /jyssh/p/18273285 模拟 贪心 递推 递归 二分 数据结构 - 栈 数据结构 - 队列 数据结构 - 图 数据结构 - 树 高级算法 - 深度优先搜索 高级 阅读全文
posted @ 2024-06-28 15:56 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 因为它,a56爆大奖在线娱乐学会了sscanf ^^ #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; map<string,int> p; int n; 阅读全文
posted @ 2024-06-28 15:15 CRt0729 阅读(1) 评论(0) 推荐(0) 编辑
摘要: NB,标签大王 也可以知道,就是队列模拟了 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 3e5+10; struct node{ int t,x; }; queue<node>q; 阅读全文
posted @ 2024-06-28 15:14 CRt0729 阅读(2) 评论(0) 推荐(0) 编辑