C语言训练-"水仙花数"问题2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,n,i=99; while(i<999) { i++;…… 题解列表 2018年09月08日 9 点赞 0 评论 1585 浏览 评分:0.0
蓝桥杯算法提高VIP-Torry的困惑(提高型) (Java代码) 摘要:Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int all=0; long sum=1; for(int a=…… 题解列表 2018年09月08日 0 点赞 0 评论 1467 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void Comy(char a[],char b[],int n,int m){ int i,j; for(i=m-1,j…… 题解列表 2018年09月08日 0 点赞 0 评论 1048 浏览 评分:0.0
区间中最大的数 (C语言代码) 摘要:解题思路:注意是哪一个区间求最大。参考代码:#include <stdio.h> int main() { int a[1002]={0},n,qn,q1,q2,i,j,max; …… 题解列表 2018年09月08日 0 点赞 0 评论 1754 浏览 评分:9.9
姜太公钓鱼 (C语言代码) 摘要:解题思路:水题。不用解释了。注意事项:参考代码:#include <stdio.h> int main() { int n,x,i,k=0; scanf("%d",&n); …… 题解列表 2018年09月08日 0 点赞 0 评论 1207 浏览 评分:9.9
换硬币 (C语言代码) 摘要:解题思路:有点类似斐波那契数列的递归求解,很简单。注意事项:参考代码:#include <stdio.h> int way(int n) { if(n>2) return way(n-1…… 题解列表 2018年09月08日 0 点赞 0 评论 2157 浏览 评分:3.0
数日子 (C语言代码) 摘要:解题思路:非常简单的方法,用数组保存每一个月的天数。注意事项:参考代码:#include <stdio.h> int main() { int m[13]={0,31,28,31,30,…… 题解列表 2018年09月08日 4 点赞 1 评论 2457 浏览 评分:8.7
鸡兔同笼 (C语言代码) 摘要:解题思路:这一题完全可以用数学方法解题,得出x,y,然后判断一下就可以了。注意事项:参考代码:#include <stdio.h> int main() { int n,m; int x,…… 题解列表 2018年09月08日 0 点赞 0 评论 1504 浏览 评分:2.0
倒杨辉三角形 (C语言代码) 摘要:解题思路:先求出杨辉三角形,然后倒着输出即可。注意事项:参考代码:#include <stdio.h> #define N 12 int main() { int a[N][N]={0}; …… 题解列表 2018年09月08日 1 点赞 0 评论 1997 浏览 评分:9.9
统计字符数 (C语言代码) 摘要:解题思路:方法很简单,先统计出字符串中26个字母每一个出现的次数,然后再求某一个字母出现最多的次数。注意事项:参考代码:#include <stdio.h> #include <string.h> …… 题解列表 2018年09月08日 6 点赞 0 评论 2530 浏览 评分:9.8