题目 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 评论 352 浏览 评分:8.0
数学解牛吃牧草 摘要:解题思路: 题目需要什么就设什么, 牧场每天新生的草量可供几头牛吃1天? 假设每头牛一天吃z牧草。草场刚开始的草料有x,每天新增的草料是y。则可以得到如下方程 x+20y=15*20*z; …… 题解列表 2023年01月02日 2 点赞 2 评论 1508 浏览 评分:8.0
编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码://给年份year,定义一个宏,以判别该年份是否闰年。提示:宏名可以定义为LEAP_YEAR,形参为y,既定义宏的形式为 //#define LEAP_YEAR(y) …… 题解列表 2023年01月04日 0 点赞 0 评论 420 浏览 评分:8.0
2152: 信息学奥赛一本通T1324-整数区间 摘要:解题思路:爱要不要,满星好评注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; struct hd{ int ks,j…… 题解列表 2023年01月04日 0 点赞 0 评论 541 浏览 评分: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 评论 378 浏览 评分:8.0
3047: Crossing River 摘要:解题思路:运用双循环,完成多次操作,在运用数学方法注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[100005],t,n;…… 题解列表 2023年01月05日 0 点赞 0 评论 578 浏览 评分:8.0
[编程基础]输入输出练习之输出图案 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c; scanf("%c",&c); printf(" %c\n",c…… 题解列表 2023年01月07日 0 点赞 0 评论 907 浏览 评分:8.0
甲流疫情死亡率 摘要:解题思路:注意事项:因为有百分号,所以应该给结果乘100参考代码:#include<stdio.h>int main(){ int a,b; double t; scanf("%d %d",&a,&b…… 题解列表 2023年01月07日 0 点赞 0 评论 907 浏览 评分:8.0
3004: 成绩(c++代码) 摘要:最后的输出结果要是整型才能通过哦! ```cpp #include using namespace std; int main() { int a,b,c; cin>>a…… 题解列表 2023年01月08日 0 点赞 0 评论 541 浏览 评分:8.0
二级C语言-平均值计算(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[11],i,cnt=0,sum=0; double average; for(i=0;i<10;i…… 题解列表 2023年01月09日 0 点赞 0 评论 613 浏览 评分:8.0