题解 2837: 年龄与疾病

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

筛选

简单明了的解题法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,n; double z=0,x=0,c=0,v=0; scanf("%d",&n); for(int……

C++:map容器简单使用方法_练习

摘要:解题思路:注意事项:某方面来说,map容器相当于数组,只不过数据类型多样化,而且需要用一个内存空间,就拿一个内存空间不够它元素的排列方式是按照下标的的大小来排列的参考代码:#include<io……

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 ……

2837: 年龄与疾病

摘要:``` #include using namespace std; int n[100000],a; double q,w,e,r; int main() { cin>>a; for……

2837: 年龄与疾病

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){    int n,age[100],i;    int a=0;        //年龄在0-18   ……