题解 2837: 年龄与疾病

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

年龄与疾病暴力解法

摘要:解题思路:先输入,之后定义每个年龄层的人,接着再除以总数即可注意事项:参考代码:n = int(input())arr = list(map(int, input().split()))&……

2837: 年龄与疾病

摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())a = b = c = d = 0for i in l:    if 0 <= int(……

无聊的星期六

摘要:size=int(input()) num=list(map(int,(input().split()))) q=w=e=r=0 for i in num:     if 0<=i<=18: ……

2837: 年龄与疾病

摘要:参考代码:n = int(input()) arr = list(map(int, input().split())) s1, s2, s3, s4 = 0, 0, 0, 0 for i in ……

格式输出问题太基本了基础不扎实

解题思路:注意事项:加油,每一种格式输出都要回参考代码:n=int(input())##p=[28.9,32.7,45.6,78,35,86.2,27.8,43,56,65]l=list(map(int,input().split()))##m=max(l)##print(l.index(m)+1)#

编写题解 2837: 年龄与疾病

摘要:解题思路:1)定义4个count计数器2)输出%:&#39;%.2f%%&#39;%n注意事项:参考代码:n=int(input()) #病人数目 ages=list(map(int,input()……