莉露编写题解 2837: 年龄与疾病 摘要:解题思路:if语句多个注意事项:只有%%才可以在20.00后输出%,否则只输出20.00参考代码:#include<stdio.h>#define MAX 100int main(){&n…… 题解列表 2026年02月07日 0 点赞 0 评论 53 浏览 评分:0.0
C语言简易方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define m 1000int main(){ int n,a[m],i; double d1,d2,d3,d4; s…… 题解列表 2025年12月09日 0 点赞 0 评论 157 浏览 评分:0.0
2837:年龄与疾病 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[100],i,n; int b,c,d,e; b=c=d=e=0; scanf(&qu…… 题解列表 2025年12月02日 0 点赞 0 评论 133 浏览 评分:0.0
年龄与疾病的简单计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int N,h,c1=0,c2=0,c3=0,c4=0; double m1,m2,m3,m4; …… 题解列表 2025年11月09日 0 点赞 0 评论 207 浏览 评分:0.0
2837:统计疾病与年龄的关系 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n; scanf("%d",&n); int arr[n];…… 题解列表 2025年10月30日 0 点赞 0 评论 218 浏览 评分:0.0
2025/8/7刷题记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,age; scanf("%…… 题解列表 2025年08月07日 0 点赞 0 评论 215 浏览 评分:0.0
C++:map容器简单使用方法_练习 摘要:解题思路:注意事项:某方面来说,map容器相当于数组,只不过数据类型多样化,而且需要用一个内存空间,就拿一个内存空间不够它元素的排列方式是按照下标的的大小来排列的参考代码:#include<io…… 题解列表 2025年03月07日 0 点赞 0 评论 326 浏览 评分:0.0
年龄与疾病暴力解法 摘要:解题思路:先输入,之后定义每个年龄层的人,接着再除以总数即可注意事项:参考代码:n = int(input())arr = list(map(int, input().split()))&…… 题解列表 2025年03月03日 1 点赞 0 评论 458 浏览 评分:10.0
年龄与疾病 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,a[n],b=0,c=0,d=0,e=0; float f,g,h,j; sc…… 题解列表 2024年12月05日 1 点赞 1 评论 682 浏览 评分:10.0