RXD's date
来源:互联网 发布:oracle数据迁移方式 编辑:程序博客网 时间:2024/05/21 17:51
RXD’s date
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 next t days, but he is poor in counting.
He wants to know, how many days are there in the next t days, in which he could go out and date with his female friends.
Input
There is only one test case.The first line consists of one integer t.The second line consists of t integers ci which means the temperature in the next t days.
1≤t≤1000 0≤ci≤50
Output
Output an integer which means the answer.
Sample Input
533 34 35 36 37
Sample Output
3
#include<iostream>#include<cstdio>using namespace std;int main(){ int n,sum,a; while(scanf("%d",&n)!=EOF) { sum=0; while(n--) { scanf("%d",&a); if(a<=35)sum++; } printf("%d\n",sum); } return 0;}
- 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
- Hdu6066 RXD's date(2017多校第3场)
- 杭电暑期多校集训—RXD's date
- 2017多校训练Contest3: 1011 RXD's date hdu6066
- 【多校训练】hdu 6066 RXD's date
- 2017 多校训练第三场 HDU 6066 RXD's date
- 2017杭电多校联赛第三场-RXD's date (hdu6066)签到水题
- 17暑假多校联赛3.11 HDU 6066 RXD's date
- 2017 Multi-University Training Contest 3 solutions 1011 RXD's date
- <S:date 的使用方法
- <s:date>标签
- 几种常见的排序(一)
- 通信录工具类
- JDK源码解析之ArrayList
- please remove installation media and close the tray (if any) then press ENTER
- 设计模式之合成复用原则
- RXD's date
- Java-内部类(三)成员内部类就应该访问外部类的成员!!
- 构造函数、析构函数 与抛出异常
- 线程的两种实现方式。
- js获取元素的偏移量offset
- (5) 什么是数据项--每天五分钟学习数据结构
- eclipse中tomcat能正常启动,可以访问页面,但是浏览器访问不了tomcat首页之tomcat配置问题
- Keras TFLearn TensorLayer实例【转】
- TensorFlow 实现Softmax Regression 识别数字