2837: 年龄与疾病
摘要:解题思路:%.2f%%指定了输出的格式:%.2f表示输出一个浮点数,保留两位小数,%%表示输出一个百分号字符。记得还要*100注意事项:参考代码:#include<stdio.h>int main()……
处理数据与输入数据同时进行
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<stdio.h>
using namespace std;
void add(int, int *);//统……
编写题解 2837: 年龄与疾病
摘要:解题思路:1)定义4个count计数器2)输出%:'%.2f%%'%n注意事项:参考代码:n=int(input()) #病人数目
ages=list(map(int,input()……
题解 2837: 年龄与疾病
摘要: #include
using namespace std;
int a[100],c;
double b,sh,q,z,l;
int main(){
……