2017 Multi-University Training Contest
来源:互联网 发布:2017深圳网络夏令营 编辑:程序博客网 时间:2024/06/05 23:52
题目: 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 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
思路:签到题
CODE:
#include<bits/stdc++.h>using namespace std;int main(){ int n,x,num; while(~scanf("%d",&n)){ num=0; while(n--){ scanf("%d",&x); if(x<36) num++; } printf("%d\n",num); } return 0;}
阅读全文
0 0
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- #2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- #2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- 2017 Multi-University Training Contest
- Live Template的用法
- 创建一个带参或者不带参函数
- PAT basic 1005
- Linux C实现的在线词典(基于TCP)
- sudo chmod -R 777 根路径,可以获取一个文件夹得操作权限。
- 2017 Multi-University Training Contest
- android 动画 弹出动画 控件 布局 动画
- 参数一个以上的问题解决方法
- (3)选择器练习
- 创建一个继承父类的类
- Xamarin.Android开发入门——Hello,Android Multiscreen深入理解
- 第四章:组件之间的通讯
- C++与C语言的区别——C++是对C语言的扩展(二)——输入cin与输出cout
- PAT basic 1006