【多校训练】hdu 6066 RXD's date
来源:互联网 发布:android防淘宝评论 编辑:程序博客网 时间:2024/06/05 14:54
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
题意:
输出不大于35的个数
思路:
签到
//// main.cpp// 1011//// Created by zc on 2017/8/22.// Copyright © 2017年 zc. All rights reserved.//#include <iostream>#include<cstdio>#include<cstring>#include<cmath>#include<algorithm>using namespace std;int main(int argc, const char * argv[]) { int t,a,sum=0; scanf("%d",&t); for(int i=0;i<t;i++) { scanf("%d",&a); if(a<=35) sum++; } printf("%d\n",sum);}
阅读全文
0 0
- 【多校训练】hdu 6066 RXD's date
- 2017 多校训练第三场 HDU 6066 RXD's date
- 2017多校训练Contest3: 1011 RXD's date hdu6066
- hdu 6066-RXD's date
- 【多校训练】hdu 6060 RXD and dividing dfs
- RXD's date(HDU 6066)
- HDU 6066 RXD's date(水~)
- 2017 多校训练第三场 HDU 6063 RXD and math
- HDU-2017 多校训练赛3-1008-RXD and math
- 2017 多校训练第三场 HDU 6060 RXD and dividing
- HDU 6060-RXD and dividing(多校训练第三场->DFS)
- HDU-2017 多校训练赛3-1005-RXD and dividing
- HDOJ 6066-RXD's date
- HDU 2017 多校联赛3 1011 RXD's date
- hdu-多校训练赛-KazaQ's Socks
- 【多校训练】hdu 6043 KazaQ's Socks
- 【多校训练】hdu 6058 Kanade's sum
- 17暑假多校联赛3.11 HDU 6066 RXD's date
- 使用原生js创建ajax请求
- 2018网易校招编程题(5)独立的小易
- GetBuffer与ReleaseBuffer的用法,CString剖析
- Lua认为false和nil为假,true和非nil为真。 要注意的是Lua中 0 为 true
- 如何处理java高并发问题---之页面静态化
- 【多校训练】hdu 6066 RXD's date
- web前端
- web 机器人
- Maven插件
- Jquery中.html(),text(),val()的区别
- log4j 和slf4j的比较
- hadoop中 INFO ipc.Client: Retrying connect to server错误解决办法
- 跨域访问
- Python入门