2017多校训练Contest3: 1011 RXD's date hdu6066
来源:互联网 发布:网络教育网络统考 编辑:程序博客网 时间:2024/06/05 17:07
Problem Description
As we all know that RXD is a life winner, therefore he always goes out, dating with his female friends.
Nevertheless, it is a pity that his female friends don't like extremely hot temperature. Due to this fact, they would not come out if it is higher than 35 degrees.
RXD is omni-potent, so he could precisely predict the temperature in the nextt days, but he is poor in counting.
He wants to know, how many days are there in the nextt days, in which he could go out and date with his female friends.
Nevertheless, it is a pity that his female friends don't like extremely hot temperature. Due to this fact, they would not come out if it is higher than 35 degrees.
RXD is omni-potent, so he could precisely predict the temperature in the next
He wants to know, how many days are there in the next
Input
There is only one test case.
The first line consists of one integert .
The second line consists oft integers ci which means the temperature in the next t days.
1≤t≤1000
0≤ci≤50
The first line consists of one integer
The second line consists of
Output
Output an integer which means the answer.
Sample Input
533 34 35 36 37
Sample Output
3
输出大于等于35的数的个数
#include<map>#include<cmath>#include<queue>#include<vector>#include<cstdio>#include<string>#include<cstring>#include<cassert>#include<iostream>#include<algorithm>using namespace std;int main(){ int T; scanf("%d",&T); int i; int ans=0,x; for(i=1;i<=T;i++) { scanf("%d",&x); if(x<=35) ans++; } printf("%d\n",ans); return 0;}
Problem Description
As we all know that RXD is a life winner, therefore he always goes out, dating with his female friends.
Nevertheless, it is a pity that his female friends don't like extremely hot temperature. Due to this fact, they would not come out if it is higher than 35 degrees.
RXD is omni-potent, so he could precisely predict the temperature in the nextt days, but he is poor in counting.
He wants to know, how many days are there in the nextt days, in which he could go out and date with his female friends.
Nevertheless, it is a pity that his female friends don't like extremely hot temperature. Due to this fact, they would not come out if it is higher than 35 degrees.
RXD is omni-potent, so he could precisely predict the temperature in the next
He wants to know, how many days are there in the next
Input
There is only one test case.
The first line consists of one integert .
The second line consists oft integers ci which means the temperature in the next t days.
1≤t≤1000
0≤ci≤50
The first line consists of one integer
The second line consists of
Output
Output an integer which means the answer.
Sample Input
533 34 35 36 37
Sample Output
3
阅读全文
0 0
- 2017多校训练Contest3: 1011 RXD's date hdu6066
- 2017多校训练Contest3: 1005 RXD and dividing hdu6060
- 2017多校训练Contest3: 1008 RXD and math hdu6063
- HDU6066-RXD's date
- 2017多校训练Contest3: 1003 Kanade's sum hdu6058
- 2017多校训练Contest3: 1004 Kanade's sum hdu6059
- 【多校训练】hdu 6066 RXD's date
- 2017 多校训练第三场 HDU 6066 RXD's date
- Hdu6066 RXD's date(2017多校第3场)
- 2017杭电多校联赛第三场-RXD's date (hdu6066)签到水题
- 2016多校训练Contest3:1001 1002 1003 1007 1010 1011
- HDU 2017 多校联赛3 1011 RXD's date
- 2017多校3 1011 RXD's date
- 2017 多校训练第三场 HDU 6063 RXD and math
- HDU-2017 多校训练赛3-1008-RXD and math
- 2017 多校训练第三场 HDU 6060 RXD and dividing
- HDU-2017 多校训练赛3-1005-RXD and dividing
- 【多校训练】hdu 6060 RXD and dividing dfs
- Windows 创建原始套接字失败,代码10013
- hdfs du操作
- Angular4.0通用指令
- selenium入门学习理论必知
- 数据库范式
- 2017多校训练Contest3: 1011 RXD's date hdu6066
- 分隔符
- 求斐波那契数列的第n项
- log4j2 jdbc的使用
- SpringMVC接收复杂集合参数
- P3390 【模板】矩阵快速幂
- Ubuntu安装Docker 入门
- 【Java源码分析】ConcurrentModificationException并发修改异常分析与解决方案(快速失败与安全失败)
- 教你阅读Python开源项目代码