[编程入门]阶乘求和 摘要:解题思路: 通过子函数进行运算阶乘,循环进行存值注意事项: 1.子函数返回类型 long long 2.输入输出%lld参考代码:#include<stdio.h>long long…… 题解列表 2023年12月30日 0 点赞 0 评论 176 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:注意事项:时间问题,限制时间太短,用指针可以减少时间参考代码:#include<stdio.h>int main(){ int i,j,n,a[100]={0},sum=0,*p=a; sc…… 题解列表 2023年12月30日 0 点赞 0 评论 216 浏览 评分:0.0
编写题解 3009: 判断闰年 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; if((a…… 题解列表 2023年12月31日 0 点赞 0 评论 217 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:人家让从小到大,不要从大到小参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; …… 题解列表 2023年12月31日 0 点赞 0 评论 244 浏览 评分:0.0
1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:是大写不是小写参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin >>a>>b…… 题解列表 2023年12月31日 0 点赞 0 评论 244 浏览 评分:0.0
编写题解 2792: 三角形判断 摘要:解题思路:两边之和大于第三边注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin…… 题解列表 2023年12月31日 0 点赞 0 评论 232 浏览 评分:0.0
如有漏洞请指出谢谢 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年01月01日 0 点赞 0 评论 298 浏览 评分:0.0
C语言-自定义函数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<math.h>#include<stdio.h>double jca(int…… 题解列表 2024年01月01日 0 点赞 0 评论 517 浏览 评分:0.0
位数分解(不止于三位) 摘要:解题思路:不同于寻常方法的求解注意事项:该方法运用了函数递归参考代码:void print(int n){ if (n > 9) print(n / 10); printf("%d\n", n % …… 题解列表 2024年01月01日 0 点赞 0 评论 330 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录(Python) 摘要:解题思路:我认为核心难点就是如何用列表表示“二维数组”,如果知道如何表示的话,就差不多了。注意事项:无参考代码:n = int(input())ls =[]for i in range(n): …… 题解列表 2024年01月01日 0 点赞 0 评论 340 浏览 评分:0.0