JAVA的解法(含compareTo重写) 摘要:解题思路:注意事项:除了重写compareTow外还可以尝试用Arrays.sort(***,new Comparator<***> )的方法,效果一样,详情看另一个题解https://blog.do…… 题解列表 2024年02月08日 0 点赞 0 评论 486 浏览 评分:9.9
[编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>using namespace std;int main(){ …… 题解列表 2024年02月08日 0 点赞 0 评论 495 浏览 评分:0.0
C语言自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int max_gys(int a,int b) { return (a%b==0)?b:max_gys(b,a%b…… 题解列表 2024年02月08日 0 点赞 0 评论 296 浏览 评分:0.0
JAVA面向对象解法(含Comparator使用,建议先去了解Comparator的相关使用再看本题解) 摘要:解题思路:注意事项:参考代码:import java.util.*;class Stu { String name; int cj; public Stu(String name, …… 题解列表 2024年02月08日 0 点赞 0 评论 582 浏览 评分:9.9
编写题解阶乘求和 摘要:解题思路:注意事项:当输入19时出现负的结果说明int的范围不够,用longlong类型保存结果参考代码:#include<iostream>using namespace std;int main(…… 题解列表 2024年02月08日 0 点赞 0 评论 536 浏览 评分:0.0
求最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m, n,min=1,max=1,i; cin >…… 题解列表 2024年02月08日 0 点赞 0 评论 809 浏览 评分:0.0
亲密数(c++,数组存储因子和,简单易懂,巧妙避免超时) 摘要:解题思路:注意事项:参考代码#include<iostream> using namespace std; int main() { int a[30010],sum=0; …… 题解列表 2024年02月08日 0 点赞 0 评论 464 浏览 评分:0.0
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月08日 0 点赞 0 评论 349 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月08日 0 点赞 0 评论 339 浏览 评分:9.9
python简单易懂 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) if n!=0: c = n%10 …… 题解列表 2024年02月08日 0 点赞 0 评论 366 浏览 评分:0.0