整齐美观,易懂有注释(两种方法)!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i; int a=0,b=0,c=0,d=0; scanf("%d",&m);…… 题解列表 2023年10月22日 0 点赞 0 评论 576 浏览 评分:9.9
年龄与疾病(C++代码) 摘要:参考代码:#include <iostream>#include <iomanip>using namespace std;int main() { int n; cin >> n; …… 题解列表 2023年07月14日 0 点赞 0 评论 532 浏览 评分:9.9
2837: 年龄与疾病(C语言) 摘要:解题思路:注意事项:1.%%打印百分号2.整形除整形会进行截断运算参考代码:#include<stdio.h>int main(void){ int n; scanf("%d", &n); int a…… 题解列表 2023年05月14日 0 点赞 0 评论 1083 浏览 评分:9.9
年龄与疾病 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,s[100],j; scanf("%d",&n); double …… 题解列表 2023年01月13日 0 点赞 0 评论 494 浏览 评分:9.9
这个方法还不错! 摘要:解题思路:按题目意思写即可注意事项:输出注意浮点型参考代码:#include<stdio.h> void fun(int t) { int a=0,b=0,c=0,d=0,m,i; for…… 题解列表 2022年12月23日 0 点赞 0 评论 739 浏览 评分:9.9
编写题解 2837: 年龄与疾病 摘要:解题思路:1)定义4个count计数器2)输出%:'%.2f%%'%n注意事项:参考代码:n=int(input()) #病人数目 ages=list(map(int,input()…… 题解列表 2022年10月23日 0 点赞 0 评论 1036 浏览 评分:9.9
年龄与疾病 摘要:解题思路:注意事项:参考代码:#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 评论 661 浏览 评分:10.0
年龄与疾病暴力解法 摘要:解题思路:先输入,之后定义每个年龄层的人,接着再除以总数即可注意事项:参考代码:n = int(input())arr = list(map(int, input().split()))&…… 题解列表 2025年03月03日 1 点赞 0 评论 435 浏览 评分:10.0