优质题解 结构体+自定义sort轻松拿捏 摘要:解题思路:显而易见本题可利用结构体将各科成绩、学号等联系在一起,再根据题目给出的排序规则,自定义sort的方式即可。注意事项:第一个关键在于sort方式的编写,要先依据总分,总分相同比较语文成绩,若再…… 题解列表 2023年09月22日 0 点赞 0 评论 699 浏览 评分:9.9
我的非常简单 摘要:解题思路:注意事项:参考代码:import mathwhile True: L, W, x, y, R, a, v, s = map(int, input().split()) if L …… 题解列表 2023年09月22日 0 点赞 0 评论 361 浏览 评分:9.9
自定义函数之整数处理(C语言) 摘要:解题思路:解题关键还是在第二个函数——进行处理。根据题目我们要处理的是找出最大值or最小值,之后按要求交换位置即可;再仔细观察我们不难发现最大值和最小值要求其实差不多,那么我们的问题就变成找最小值——…… 题解列表 2023年09月22日 0 点赞 0 评论 312 浏览 评分:9.9
快且蠢(有点废空间) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<list> using namespace std; int main() { list<int>…… 题解列表 2023年09月23日 0 点赞 0 评论 306 浏览 评分:9.9
矩阵对角线简单求和 摘要:解题思路:写出对角线的数组对应下标,不难发现规律注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3],i,j,m=0,k=0; for(i=0;i<3;…… 题解列表 2023年09月23日 0 点赞 0 评论 291 浏览 评分:9.9
2831: 画矩形 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) { int a,b,c; char d…… 题解列表 2023年09月23日 0 点赞 0 评论 260 浏览 评分:9.9
自定义函数求最大公约数最小公倍数 摘要:解题思路:最大公约数利用辗转相除法,最小公倍数为两数相乘再除以最大公约数注意事项:参考代码:#include<stdio.h>int gcd(int x,int y)//最大公约数{ int m…… 题解列表 2023年09月23日 0 点赞 0 评论 287 浏览 评分:9.9
题解 2751: 超级玛丽游戏 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<" ********"…… 题解列表 2023年09月23日 0 点赞 0 评论 684 浏览 评分:9.9
题解 3003: 鸡兔同笼问题 摘要:解题思路:注意事项:参考代码: #include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<(4…… 题解列表 2023年09月23日 0 点赞 0 评论 388 浏览 评分:9.9
1761: 学习ASCII码 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { printf("%d %c",'t',63); return 0; }…… 题解列表 2023年09月23日 1 点赞 3 评论 1578 浏览 评分:9.9