成绩等级转换-题解(C语言代码) 摘要:解题思路:用While循环 注意事项:参考代码:#include<stdio.h>int main(){ int x; while(scanf("%d",&x)==1) { …… 题解列表 2020年11月27日 0 点赞 0 评论 1198 浏览 评分:9.9
求阶梯水费-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,b,c; scanf("%d",&x); if(x<=15) y=x*2; else if(…… 题解列表 2020年11月27日 0 点赞 0 评论 1581 浏览 评分:9.9
考试评级-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x>=80&&x<=100) …… 题解列表 2020年11月27日 0 点赞 0 评论 941 浏览 评分:9.9
求总时间-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N,i; double sum=0.0,t=30.0; scanf("%d",&N); for(i=1…… 题解列表 2020年11月27日 0 点赞 0 评论 644 浏览 评分:9.9
蛇行矩阵-题解(C语言代码) 摘要:解题思路:利用for循环和行列的差的规律。注意事项:参考代码:#include <stdio.h> int main() { int n,m,x=1,y=1,i,j,a=1,b=1; …… 题解列表 2020年11月27日 0 点赞 0 评论 599 浏览 评分:9.9
奇数个数-题解(C语言代码) 摘要:解题思路:注意J的初值,strlen是测量函数。注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char ch[100]; int…… 题解列表 2020年11月27日 0 点赞 0 评论 684 浏览 评分:9.9
偶数列举-题解(C语言代码) 摘要:解题思路:很简单,直接加2,直到小于N。注意事项:i 应从2开始加参考代码:#include <stdio.h>int main(){ int N,i,x; scanf("%d",&N); for(i…… 题解列表 2020年11月27日 0 点赞 0 评论 791 浏览 评分:9.9
计算数字个数-题解(C语言代码) 摘要:解题思路:先算出字符串的长度再用for循环。注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char c[1000]; int i…… 题解列表 2020年11月27日 0 点赞 0 评论 920 浏览 评分: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 评论 1193 浏览 评分:9.9
蓝桥杯基础练习VIP-字符串对比-题解(Python代码) 摘要:解题思路:按题思考:1:len(a)!=len(b)2: a==b3: 题目说除大小写以外一样,故,假如两个字符串都为大写(小写),用lower()或upper()方法,在做比较4:其他的为第四种情况…… 题解列表 2020年11月27日 0 点赞 0 评论 918 浏览 评分:9.9