题解列表

筛选

[编程入门]阶乘求和

摘要:解题思路:    通过子函数进行运算阶乘,循环进行存值注意事项:    1.子函数返回类型 long long    2.输入输出%lld参考代码:#include<stdio.h>long long……

[编程入门]完数的判断

摘要:解题思路:注意事项:时间问题,限制时间太短,用指针可以减少时间参考代码:#include<stdio.h>int main(){ int i,j,n,a[100]={0},sum=0,*p=a; sc……

编写题解 3009: 判断闰年

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a;    cin>>a;    if((a……

编写题解 2792: 三角形判断

摘要:解题思路:两边之和大于第三边注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b,c;    cin……

如有漏洞请指出谢谢

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……

C语言-自定义函数

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<math.h>#include<stdio.h>double jca(int……

位数分解(不止于三位)

摘要:解题思路:不同于寻常方法的求解注意事项:该方法运用了函数递归参考代码:void print(int n){ if (n > 9) print(n / 10); printf("%d\n", n % ……