HDU6066-RXD's date
来源:互联网 发布:php验证连接数据库代码 编辑:程序博客网 时间:2024/06/05 07:55
RXD's date
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 645 Accepted Submission(s): 490
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
Source
2017 Multi-University Training Contest - Team 3
#include <iostream>#include <cstdio>#include <cstring>#include <string>#include <algorithm>#include <map>#include <set>#include <stack>#include <queue>#include <vector>#include <bitset>#include <functional>using namespace std;#define LL long longconst int INF = 0x3f3f3f3f;int n,a[1009];int main(){ while(~scanf("%d",&n)) { int sum=0; for(int i=1;i<=n;i++) { scanf("%d",&a[i]); if(a[i]<=35) sum++; } printf("%d\n",sum); } return 0;}
阅读全文
0 0
- HDU6066-RXD's date
- Hdu6066 RXD's date(2017多校第3场)
- 2017多校训练Contest3: 1011 RXD's date hdu6066
- 2017杭电多校联赛第三场-RXD's date (hdu6066)签到水题
- RXD's date
- hdu 6066-RXD's date
- HDOJ 6066-RXD's date
- RXD's date(HDU 6066)
- 2017多校3 1011 RXD's date
- HDU 6066 RXD's date(水~)
- HDU 2017 多校联赛3 1011 RXD's date
- 杭电暑期多校集训—RXD's date
- 【多校训练】hdu 6066 RXD's date
- 2017 多校训练第三场 HDU 6066 RXD's date
- 17暑假多校联赛3.11 HDU 6066 RXD's date
- 2017 Multi-University Training Contest 3 solutions 1011 RXD's date
- <S:date 的使用方法
- <s:date>标签
- java编译和运行的相关文章
- java io复制文件方法的中文注释
- 欢迎使用CSDN-markdown编辑器
- 我的代码风格
- 并行分布计算中的异构性
- HDU6066-RXD's date
- HDU 6058 Kanade's sum
- Oracle之数据库备份
- FAFU OJ 变形课
- Caffe在Ubuntu 14.04 的安装
- jdk 源码分析(18)java io包分析
- PLC梯形图编程基础知识详解(转自:http://gongkong.ofweek.com/2014-09/ART-310012-11000-28882866_2.html)
- hibernate初学4 补充
- # node 版本管理