上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 37 下一页
摘要: #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 阅读(11) 评论(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 阅读(93) 评论(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 阅读(28) 评论(0) 推荐(0)
摘要: 我比较喜欢解法二的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 阅读(13) 评论(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 阅读(42) 评论(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 阅读(132) 评论(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 阅读(85) 评论(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 阅读(28) 评论(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 阅读(77) 评论(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 阅读(42) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 37 下一页
点击右上角即可分享
微信分享提示