C语言程序设计教程(第三版)课后习题6.4 (Java代码) 摘要:解题思路: 经典递归求阶乘解法!注意事项: 位数较多时,会出现精度不够的情况,使用 BigInteger 类进行数据处理。参考代码: import java.math.BigInteger;…… 题解列表 2018年03月08日 2 点赞 0 评论 1081 浏览 评分:0.0
C语言训练-求函数值 (C语言代码)(递归) 摘要:解题思路:注意事项:参考代码:/*按如下递归公式求函数值。 x=1时 f(x)=10;x>1时 f(x)=f(x-1)+2*/#include <stdio.h>int f(int x);int ma…… 题解列表 2018年03月08日 1 点赞 0 评论 1697 浏览 评分:0.0
Tom数 (Java代码) 摘要:解题思路:由于数字太大,所以不能使用int 或 long所以考虑用 String注意事项:参考代码:import java.util.Scanner;public class Main { publ…… 题解列表 2018年03月08日 0 点赞 0 评论 862 浏览 评分:0.0
IP判断 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class A1116 { public static void main(String args[]) …… 题解列表 2018年03月08日 0 点赞 0 评论 1677 浏览 评分:0.0
蓝桥杯基础练习VIP-回形取数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int num[1000005],nums=0;int main(){ in…… 题解列表 2018年03月08日 0 点赞 0 评论 944 浏览 评分:0.0
蓝桥杯基础练习VIP-龟兔赛跑预测 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int num[1000005],nums=0;int main(){ in…… 题解列表 2018年03月08日 0 点赞 0 评论 1091 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数 (C++代码) 摘要:#include<iostream> #include<algorithm> using namespace std; int judge(int i,int j,int k){ in…… 题解列表 2018年03月08日 1 点赞 0 评论 1875 浏览 评分:0.0
罗列完美数 (C语言代码) 摘要:解题思路:注意事项:大循环之后要将sum归0参考代码:int main(){ int i,N,X,sum; sum=0; scanf("%d",&N); for(X=1;X<N…… 题解列表 2018年03月08日 1 点赞 0 评论 945 浏览 评分:0.0
蓝桥杯算法提高VIP-不同单词个数统计 (C语言代码) 摘要:解题思路:先识别单词,再统计注意事项:参考代码:#include<stdio.h>#include<string.h>#define MAX 1000int main(){ char str[M…… 题解列表 2018年03月08日 0 点赞 0 评论 1347 浏览 评分:0.0
蓝桥杯历届试题-打印十字图 (C语言代码) 摘要:解题思路:模拟注意事项:参考代码:#include<iostream> using namespace std;#include<string.h>int main(){ char a[130][1…… 题解列表 2018年03月09日 1 点赞 0 评论 1206 浏览 评分:0.0