HDOJ 6066-RXD's date
来源:互联网 发布:java调用微信接口 编辑:程序博客网 时间:2024/06/03 17:59
RXD's date
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 563 Accepted Submission(s): 449
题目链接:点击打开链接
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
5
33 34 35 36 37
Sample Output
3
5
33 34 35 36 37
Sample Output
3
题意:吐槽浙江的高温,统计有多少数小于或等于35.
#include <iostream>#include<stdio.h>using namespace std;int main(){ int a,b,sum=0; scanf("%d",&a); for(int i=0;i<a;i++) { scanf("%d",&b); if(b<=35) { sum+=1; } } printf("%d\n",sum); return 0;}
阅读全文
0 0
- HDOJ 6066-RXD's date
- hdu 6066-RXD's date
- RXD's date(HDU 6066)
- HDU 6066 RXD's date(水~)
- RXD's date
- HDU6066-RXD's date
- 【多校训练】hdu 6066 RXD's date
- 2017多校3 1011 RXD's date
- 2017 多校训练第三场 HDU 6066 RXD's date
- 17暑假多校联赛3.11 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
- 2017杭电多校联赛第三场-RXD's date (hdu6066)签到水题
- 2017 Multi-University Training Contest 3 solutions 1011 RXD's date
- HDOJ 6060-RXD and dividing
- <S:date 的使用方法
- Parity game POJ
- NYOJ 93 汉诺塔(三)(栈)
- 重构之重新组织数据
- ListView添加CheckBox实现单选全选(链接)
- 浅谈SSH+ajax分页效果
- HDOJ 6066-RXD's date
- 冒泡排序
- Java 在前后台进行交互时,所要注意的情况
- WebRTC实时通信系列教程3 获取示例代码
- Elasticsearch Head安装
- 20170805题目
- 剑指offer:栈的压入、弹出序列
- bzoj 3551 kruskal重构树dfs序上的主席树
- python异常处理