日期换算-题解(C语言代码) 不用判断是否为闰年 直接算天数。 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[12]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int …… 题解列表 2020年11月27日 0 点赞 0 评论 493 浏览 评分:8.0
[编程入门]电报加密-题解(C语言代码) 摘要:解题思路:注意事项:注意单独判断‘z’,如果是‘z’,单独赋值‘a’给他;参考代码:#include <stdio.h>#include <string.h>int main(){ int i;…… 题解列表 2020年11月27日 0 点赞 0 评论 234 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比-题解(Python代码) 摘要:解题思路:按题思考:1:len(a)!=len(b)2: a==b3: 题目说除大小写以外一样,故,假如两个字符串都为大写(小写),用lower()或upper()方法,在做比较4:其他的为第四种情况…… 题解列表 2020年11月27日 0 点赞 0 评论 689 浏览 评分:9.9
统计成绩-题解(C语言代码) 敲代码如此快乐!! 相对集中的瓜子! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[10],sum=0; int i,j; float average; for(i=0;i<10;i…… 题解列表 2020年11月27日 0 点赞 0 评论 973 浏览 评分:9.9
统计字符个数-题解(C语言代码) 大家简单看看就行了 千万要评分! 0.0 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char a[10]; int i,j=0,k=0,y=0; for(i=0;i<10;i++) { sc…… 题解列表 2020年11月27日 0 点赞 0 评论 502 浏览 评分:8.5
计算数字个数-题解(C语言代码) 摘要:解题思路:先算出字符串的长度再用for循环。注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char c[1000]; int i…… 题解列表 2020年11月27日 0 点赞 0 评论 792 浏览 评分:9.9
二级C语言-公约公倍-题解(C语言代码)(仅本人观看记忆) 摘要:方法一//辗转相除法 #include "stdio.h" main(){ int m,n; scanf("%d %d",&m,&n); int a=m,b=n;…… 题解列表 2020年11月27日 0 点赞 0 评论 324 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:解题思路:拆分位数注意事项:输出结果参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); printf("%d %d %d…… 题解列表 2020年11月27日 0 点赞 0 评论 242 浏览 评分:0.0
蓝桥杯算法提高VIP-任意年月日历输出-题解(C++代码) 摘要:```cpp #include inline bool isLeap(int y){ return y%4==0 && y%100!=0 || y%400==0; } int…… 题解列表 2020年11月27日 0 点赞 0 评论 445 浏览 评分:0.0
偶数列举-题解(C语言代码) 摘要:解题思路:很简单,直接加2,直到小于N。注意事项:i 应从2开始加参考代码:#include <stdio.h>int main(){ int N,i,x; scanf("%d",&N); for(i…… 题解列表 2020年11月27日 0 点赞 0 评论 593 浏览 评分:9.9