c代码记录之成绩排序--结构体 摘要:Mark: ```c int n = 10 ; int a[n]; // NO , 这种情况不被编译器允许 ``` ```c int n ; scanf(" %d "…… 题解列表 2024年01月03日 1 点赞 0 评论 513 浏览 评分:10.0
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年01月05日 0 点赞 0 评论 428 浏览 评分:10.0
2961最长字符串 摘要: ### 题目解析 使用while cin以空格结束,把一句话分成多个小字符串,判断每一个长度。 最后一个删掉最后一个字符. #include using namespac…… 题解列表 2024年01月05日 0 点赞 0 评论 450 浏览 评分:10.0
2544: N以内累加求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int s…… 题解列表 2024年01月08日 1 点赞 0 评论 287 浏览 评分:10.0
【递归】母牛的故事 摘要:解题思路:每3年,小母牛成年,并在从第四个年头开始,每年年初也生一头小母牛。例:第 6 年有 6头 新的小母牛,3头 成年母牛,经过3年 6头 小母牛成年,并与其他成年母牛生出 9头 新的小母牛。总结…… 题解列表 2024年01月09日 1 点赞 0 评论 480 浏览 评分:10.0
2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2;i<…… 题解列表 2024年01月09日 1 点赞 2 评论 312 浏览 评分:10.0
全字符串输入 通用转换 求解 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年01月09日 1 点赞 0 评论 350 浏览 评分:10.0
2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; cin>>n>>m; l…… 题解列表 2024年01月13日 1 点赞 0 评论 579 浏览 评分:10.0
题解 3011: 余数相同问题 摘要:解题思路:定义三个长整型变量,写循环和选择判断x;注意事项:在循环中输出完x后要终止循环,不然会超时;参考代码:#include <bits/stdc++.h>using namespace std;…… 题解列表 2024年01月14日 1 点赞 0 评论 255 浏览 评分:10.0
函数重载之比较大小 摘要:解题思路:思路比较简单,写三个重载的函数就行了。注意事项:参考代码:import java.util.*; public class Main { public static voi…… 题解列表 2024年01月15日 0 点赞 0 评论 696 浏览 评分:10.0