题目 1739: 成绩排序 摘要:解题思路:注意事项:参考代码:def compare_students(student): name, age, score = student return (score, name, …… 题解列表 2023年11月10日 0 点赞 0 评论 449 浏览 评分:2.0
三个数最大值1002题解(c++) 摘要:#include using namespace std; int main() { int a; int b; int c; cin>>a>>b>>c; if (a>b>c)…… 题解列表 2023年11月12日 0 点赞 0 评论 306 浏览 评分:2.0
[编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char arr1[20] = { '0' }; char arr2[20] = {…… 题解列表 2023年11月12日 0 点赞 0 评论 260 浏览 评分:2.0
班上有学生若干名,给出每名学生的年龄(整数),求班上所有学生的平均年龄,保留到小数点后两位。 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int n,i,z; double sum=0; scanf("%d",&n); for(i=1;i<=n;i…… 题解列表 2023年11月16日 0 点赞 0 评论 436 浏览 评分:2.0
没学链表,但学好循环和数组照样能解决问题 摘要:解题思路:创建一个数组,根据输入的人数往数组中存放每个人的编号,虽然没办法直接删除数组中的元素,但编号是从1开始的,也就是说当报数到3的时候,可以通过将那个编号变为0的方式达到退出的效果(变为其他数也…… 题解列表 2023年11月16日 0 点赞 0 评论 298 浏览 评分:2.0
2807: C++解题 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年11月17日 0 点赞 0 评论 334 浏览 评分:2.0
2819: 数字反转 摘要:``` #include using namespace std; int main(){ int a,ans=0; cin>>a; while(a){ ans=ans*10+…… 题解列表 2023年11月21日 0 点赞 0 评论 200 浏览 评分:2.0
菜鸡做的,仅供参考,不足请指导 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2023年11月27日 0 点赞 0 评论 302 浏览 评分:2.0
1852: 求1+2+3+...+n的值(重温旧题) 摘要://函数 #include <bits/stdc++.h> using namespace std; long long aaaa(int n) { int sum =0; …… 题解列表 2023年11月29日 0 点赞 0 评论 304 浏览 评分:2.0
c代码记录之验证字串 摘要:1.空串是所有字符串的子串,但这题好像不验证这个 2.gets不通过,scanf能通过 #include #include int main() { …… 题解列表 2023年11月30日 0 点赞 1 评论 343 浏览 评分:2.0