C语言——求小数的某一位 摘要:解题思路这个是我做这道题的思路,希望对你们有帮助。注意:这个代码不是题目的答案!!!!!!!!!#include<stdio.h>//char a[1001]={'\0'}; …… 题解列表 2022年12月31日 0 点赞 0 评论 662 浏览 评分:8.0
题目 1505: 蓝桥杯算法提高VIP-单词个数统计(简单暴力,一看就懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h>int main(){ char a[100]; int i,b=0; gets(a);// s…… 题解列表 2022年12月31日 0 点赞 0 评论 277 浏览 评分:8.0
数学解牛吃牧草 摘要:解题思路: 题目需要什么就设什么, 牧场每天新生的草量可供几头牛吃1天? 假设每头牛一天吃z牧草。草场刚开始的草料有x,每天新增的草料是y。则可以得到如下方程 x+20y=15*20*z; …… 题解列表 2023年01月02日 2 点赞 2 评论 1396 浏览 评分:8.0
编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码://给年份year,定义一个宏,以判别该年份是否闰年。提示:宏名可以定义为LEAP_YEAR,形参为y,既定义宏的形式为 //#define LEAP_YEAR(y) …… 题解列表 2023年01月04日 0 点赞 0 评论 346 浏览 评分:8.0
2152: 信息学奥赛一本通T1324-整数区间 摘要:解题思路:爱要不要,满星好评注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; struct hd{ int ks,j…… 题解列表 2023年01月04日 0 点赞 0 评论 402 浏览 评分:8.0
将每个数字存入数组 摘要:解题思路:数组求解注意事项:参考代码:#include<stdio.h>int main(){ int n,t,i=0,j,cnt=0,a[20]; scanf("%d",&n); while(n){…… 题解列表 2023年01月04日 1 点赞 0 评论 305 浏览 评分:8.0
3047: Crossing River 摘要:解题思路:运用双循环,完成多次操作,在运用数学方法注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[100005],t,n;…… 题解列表 2023年01月05日 0 点赞 0 评论 408 浏览 评分:8.0
[编程基础]输入输出练习之输出图案 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c; scanf("%c",&c); printf(" %c\n",c…… 题解列表 2023年01月07日 0 点赞 0 评论 800 浏览 评分:8.0
甲流疫情死亡率 摘要:解题思路:注意事项:因为有百分号,所以应该给结果乘100参考代码:#include<stdio.h>int main(){ int a,b; double t; scanf("%d %d",&a,&b…… 题解列表 2023年01月07日 0 点赞 0 评论 824 浏览 评分:8.0
3004: 成绩(c++代码) 摘要:最后的输出结果要是整型才能通过哦! ```cpp #include using namespace std; int main() { int a,b,c; cin>>a…… 题解列表 2023年01月08日 0 点赞 0 评论 450 浏览 评分:8.0