BREEZE------之 总算有小技巧系列(用的C) 摘要:其实这个题目就是一般的普通阶乘题(有难的阶乘超级变态(小声BB))注意一点就是int的大小容纳不下30!,所以要换成double还有记得科学计数法是利用%e来显示的!#include<stdio.h>…… 题解列表 2019年04月15日 0 点赞 0 评论 1157 浏览 评分:0.0
蓝桥杯算法提高VIP-sign函数 (C语言代码)可绕过不判断0 摘要:解题思路:利用if语句的否定特性:绕过不判断是否等于零注意事项:double对应输入为%lf,不是%f参考代码:#include<stdio.h>int sign(double x){ if(x>0)…… 题解列表 2019年04月16日 0 点赞 0 评论 1100 浏览 评分:0.0
C语言训练-求函数值 (C语言代码)用递归就行了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ if(x==1) return 10; else if(x>1) return fun(x-1)+2…… 题解列表 2019年04月16日 0 点赞 0 评论 1030 浏览 评分:0.0
统计字母个数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,k=0,s[26]={0}; while(scanf("%c",&k)) { if(k=='…… 题解列表 2019年04月16日 0 点赞 0 评论 1214 浏览 评分:0.0
[编程入门]自定义函数之数字分离 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x1,x2,x3,x4; scanf("%d",&n); x1=n%10; x2=n/10%1…… 题解列表 2019年04月16日 0 点赞 0 评论 1115 浏览 评分:0.0
C语言训练-数字母 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int i,x,y,sum,n; x=0;y=0;…… 题解列表 2019年04月16日 0 点赞 0 评论 959 浏览 评分:0.0
C二级辅导-统计字符 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,x,j,t,o; t=x=t=o=j=0; gets(a); for(i=…… 题解列表 2019年04月16日 0 点赞 0 评论 942 浏览 评分:0.0
C语言训练-尼科彻斯定理 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0,i,j,t,x; scanf("%d",&n); x=n*n*n; printf("%…… 题解列表 2019年04月16日 0 点赞 0 评论 860 浏览 评分:0.0
【密码】 (C++代码)(有惊喜!!!一种新想法) 摘要:解题思路:首先定义字符数组然后输入再把四个类型的字符分类,如果没有这种字符就是‘0’(假),然后最终加起来验证是否>=3即可。注意事项:注意同时需要满足两个条件才可以参考代码:#include<ios…… 题解列表 2019年04月19日 0 点赞 0 评论 1238 浏览 评分:0.0
基础训练数列排序 (C语言代码) 摘要:解题思路:冒泡排序 加快速排序刚学的 贴上来注意事项:参考代码:#include<stdio.h>int a[300];void kuaisu(int x,int y){ if(x<y){ int …… 题解列表 2019年04月16日 0 点赞 0 评论 1090 浏览 评分:0.0