某医院想统计一下某项疾病的获得与否与年龄是否有关,需要对以前的诊断记录进行整理,按照0-18、19-35、36-60、61以上(含61)四个年龄段统计的患病人数占总患病人数的比例。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,x,a=0,b=0,c=0,d=0; scanf("%d",&n); for(…… 题解列表 2024年04月22日 0 点赞 0 评论 258 浏览 评分:0.0
HashMap键值对方法 摘要:解题思路:注意事项:参考代码:import java.util.HashMap;import java.util.Map;import java.util.Scanner;public class M…… 题解列表 2024年04月22日 0 点赞 0 评论 295 浏览 评分:0.0
最容易想到的,两个for循环 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n,ans=0,flag=0;…… 题解列表 2024年04月22日 0 点赞 0 评论 402 浏览 评分:0.0
2839:石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>;using namespace std;int main(){ int n,na,nb; cin>>n>>na…… 题解列表 2024年04月22日 0 点赞 0 评论 216 浏览 评分:9.9
2821: 开关灯 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=1e5;//定义小一点int a[N] ;int main(…… 题解列表 2024年04月22日 0 点赞 0 评论 223 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e5;//太大会爆ll a…… 题解列表 2024年04月22日 0 点赞 0 评论 204 浏览 评分:0.0
单纯模拟我写详细点,方便新人观看 摘要:解题思路:主要看数据量,不是很大的都考虑先模拟。(求赞!)注意事项:看清题,是奇数还是偶数分清楚,今年考的时候就看错了,还好改了参考代码:#include<iostream>using namespa…… 题解列表 2024年04月22日 1 点赞 0 评论 317 浏览 评分:0.0
2826: 雇佣兵 (几种解法,存疑) 摘要:以下有两种思路的代码,第一种: ```c int main() { int zhan,neng,M,N,X; scanf("%d%d%d",&M,&zhan,&ne…… 题解列表 2024年04月22日 0 点赞 4 评论 109 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:e……注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int i,j,k…… 题解列表 2024年04月21日 0 点赞 0 评论 201 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5+5;int…… 题解列表 2024年04月21日 0 点赞 0 评论 175 浏览 评分:9.9