C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:用基本的方法求出阶乘的和。注意事项:注意int的位数,20的阶乘和肯定不够,所以要使用 long long;参考代码:#include <stdio.h> int main() { …… 题解列表 2018年05月14日 0 点赞 0 评论 1130 浏览 评分:9.9
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10];//最大空间10 int num; //输入数据 for(int i=0;i…… 题解列表 2018年05月13日 0 点赞 0 评论 521 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.1 (C语言代码) 摘要:解题思路:自己用的比较逻辑。。。。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c);…… 题解列表 2018年05月13日 0 点赞 0 评论 879 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.10 (C语言代码) 摘要:解题思路:用一个字符串数组存下输入的字符,然后用ascill码判断是否是a-z和A-Z,是就将ascill加1然后输出,不是要加密的字符就原样输出注意事项:我用的gets来获取输入的字符串,gets会…… 题解列表 2018年05月13日 0 点赞 0 评论 749 浏览 评分:0.0
蓝桥杯算法提高VIP-实数相加 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cstdio> using namespace std; const …… 题解列表 2018年05月13日 0 点赞 0 评论 814 浏览 评分:0.0
回文串 (C语言代码) 摘要:解题思路:两头往中间走,相同继续走,不同就跳出,最后比对i,j参考代码:#include<stdio.h>#include<string.h>int main(){ char s[260]; …… 题解列表 2018年05月13日 0 点赞 0 评论 772 浏览 评分:0.0
统计立方数(超级暴力解法) (Java代码) 摘要:public static void main(String[] args) { int[] num = { 1, 8, 27, 64, 125, 216, 343, 512, 729, 100…… 题解列表 2018年05月13日 0 点赞 0 评论 795 浏览 评分:0.0
有注释,以及个人的思路,跟大家分享 摘要:#include<stdio.h> int jc(int n)/*定义一个函数*/ { int i; int sum=0; for(i=1;i<=n;i++) { sum+=i; }…… 题解列表 2018年05月13日 1 点赞 0 评论 1118 浏览 评分:0.0
总是提示格式错误,大家帮忙看看哪里错了,结果是对的 摘要:解题思路:没啥子思路,就是几个数组然后冒泡法依次比较注意事项:参考代码:#include"stdio.h"main(){ int n[100],a[100],m[100]; int b,c,d,t,j…… 题解列表 2018年05月13日 0 点赞 0 评论 1259 浏览 评分:4.0
回文串 (Java代码) 摘要:解题思路:注意事项:参考代码:public class 回文串_水到不能再水 { public static boolean isHw(String str) { for(int i=0;i…… 题解列表 2018年05月13日 0 点赞 0 评论 668 浏览 评分:0.0