1739: 成绩排序 (坑很多) 摘要:解题思路:注意事项:1.成绩小的在前 2.名字小的在前(比较的整个字符串不是首字母) 3.年龄小的在前参考代码:#include<stdio.h> typedef struct{ char a[10…… 题解列表 2023年11月22日 0 点赞 0 评论 347 浏览 评分:0.0
1810: [编程基础]输入输出练习之精度控制3 摘要:```cpp #include #include using namespace std; int main() { char ch; float a; f…… 题解列表 2023年11月22日 0 点赞 0 评论 438 浏览 评分:9.9
大整数加法的双向链表写法 摘要:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> struct lennum{ int num; struct l…… 题解列表 2023年11月22日 0 点赞 0 评论 149 浏览 评分:6.0
1025: [编程入门]数组插入处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[9],n; for(int i=0; i<9; i++) { scanf("…… 题解列表 2023年11月22日 0 点赞 1 评论 141 浏览 评分:9.9
2834: 与指定数字相同的数的个数 摘要:``` #include using namespace std; int a[100000],n,num,ans; int main(){ cin>>n; for( int i=1;…… 题解列表 2023年11月22日 0 点赞 0 评论 248 浏览 评分:0.0
题解 1234: 检查一个数是否为质数 摘要: #include using namespace std; int main(){ int a,b,d; while(cin>>a){ …… 题解列表 2023年11月22日 0 点赞 0 评论 178 浏览 评分:0.0
题解 2831: 画矩形 摘要: #include using namespace std; int main(){ int a,b,d; char c; cin>>a>…… 题解列表 2023年11月22日 0 点赞 0 评论 186 浏览 评分:0.0
3020: 最大数位置 摘要:``` #include using namespace std; int a[100000],n,maxx,num; int main(){ cin>>n; maxx = -1; …… 题解列表 2023年11月22日 0 点赞 0 评论 328 浏览 评分:9.9
判断水仙花 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,ge,shi,bai; //scanf("%d",&n)…… 题解列表 2023年11月22日 0 点赞 0 评论 194 浏览 评分:9.9
优质题解 数列极差题解(C++和Java)(超级详细,带有贪心策略的证明) 摘要:# 数列极差题解(C++和Java)(超级详细,带有贪心策略的证明) **时间复杂度:O(NlogN) 思路:类似哈夫曼树的操作** ##贪心思路: 从数量小的时候入手 假如有3个数a,b,…… 题解列表 2023年11月22日 0 点赞 0 评论 861 浏览 评分:9.9