第几天 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int n…… 题解列表 2019年04月19日 0 点赞 0 评论 930 浏览 评分:0.0
检查一个数是否为质数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,k; scanf("%d",&n); for(i=2;i<n;i++) { if(n%i==0…… 题解列表 2019年04月19日 0 点赞 0 评论 1002 浏览 评分:0.0
[编程入门]三个数字的排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3],s; for(int i=0;i<3;i++){ scanf("%d…… 题解列表 2019年04月19日 2 点赞 0 评论 1219 浏览 评分:0.0
[编程入门]数字的处理与判断 (C语言代码) 摘要:解题思路:利用字符串注意事项:参考代码: #include<stdio.h>#include<string.h>int main(void){ char arr1[6]; int i, n; i…… 题解列表 2019年04月19日 0 点赞 0 评论 857 浏览 评分:0.0
蓝桥杯算法提高VIP-不同单词个数统计(字典树)----momoc 摘要:解题思路:使用字典树来解。字典树传送门。https://blog.csdn.net/qq_38891827/article/details/80532462注意事项: 边插入边统计,如果当前字符…… 题解列表 2019年04月20日 1 点赞 0 评论 1194 浏览 评分:0.0
输出字符'A'个数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++){ …… 题解列表 2019年04月20日 2 点赞 0 评论 1227 浏览 评分:0.0
[编程入门]有规律的数列求和 (C语言代码) 摘要:解题思路:先利用数学知识找出其中的关系,后一项的分母为前一项的分子,后一项的分子为前一项的分母加该项的分母。注意事项:此处各变量均不能定义为整数型,若定义为整数型,最后的结果将一直为整数,导致解题错误…… 题解列表 2019年04月20日 0 点赞 0 评论 749 浏览 评分:0.0
[编程入门]实数的打印 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double n; scanf("%lf",&n); printf("%6.2f\n",n); printf("…… 题解列表 2019年04月20日 0 点赞 0 评论 949 浏览 评分:0.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,sum=0,n,k; scanf("%d",&n); for(i=1;i<n+1;i++) { …… 题解列表 2019年04月20日 0 点赞 0 评论 878 浏览 评分:0.0
[编程入门]求和训练 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,Sn=0,X=0,Xn=0,i,j,l; float Y=0,Yn=0; scanf("%…… 题解列表 2019年04月20日 1 点赞 0 评论 1022 浏览 评分:0.0