HDU 6066 17多校3 RXD's date(超水题)
2017-08-02 10:02
393 查看
[align=left]Problem Description[/align]
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.
[align=left]Input[/align]
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
[align=left]Output[/align]
Output an integer which means the answer.
[align=left]Sample Input[/align]
5
33 34 35 36 37
[align=left]Sample Output[/align]
3
题意:要你判断给出的温度有几个在35度及以下
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.
[align=left]Input[/align]
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
[align=left]Output[/align]
Output an integer which means the answer.
[align=left]Sample Input[/align]
5
33 34 35 36 37
[align=left]Sample Output[/align]
3
题意:要你判断给出的温度有几个在35度及以下
#include<cstdio> #include<iostream> #include<cmath> #include<cstring> using namespace std; #define MAXN 3005 int main() { int t,res=0,tmp; scanf("%d",&t); while(t--) { scanf("%d",&tmp); if(tmp<=35) res++; } printf("%d\n",res); return 0; }
相关文章推荐
- 17 多校 3 - 1011 - RXD's date (HDU 6066)
- HDU 6077 17多校4 Time To Get Up 水题
- 2017 多校训练第三场 HDU 6066 RXD's date
- RXD's date(HDU 6066)
- hdu 6066-RXD's date
- HDU 6075 Questionnaire 17多校4 水题
- HDU 6066 RXD's date(水~)
- HDU 5512 Pagodas (水题+GCD )
- HDU 6070 Dirt Ratio(二分+线段树 17多校第四场)
- HDU 4727 The Number Off of FFF (水题)
- HDU-2134 Cuts the cake 水题 数学题
- HDU 3951 Coin Game(博弈水题)
- hdu 2572 终曲(水题)
- HDU - 2043密码 水题
- HDU-2097-Sky数(水题)
- HDU——1046 Gridland(水题+规律题)
- hdu 5842 Lweb and String【水题】
- 水题~HDU 2010 水仙花数 题解
- HDU 5373 The shortest problem (水题)
- HDU--Elevator(水题)