RXD's date
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
5
33 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相关推荐
- Postman使用Date数据类型,Postman发送Date类型数据,Postman模拟前端调用
Postman使用Date数据类型: 在form-data数据类型下,使用 2021/7/7 11:11:00 (yyyy/MM/dd HH:mm:ss) 的数据格式即可 如下: 在json数据格式中 ...
- Oracle根据日期区间查询Date类型的数据
在Oracle数据库中,根据日期区间查询Date类型的数据 select proposalno,policyno,enddate from 表名 where 时间字段 between to_date( ...
- Java中如何实现Date与String之间的数据类型转换
String 数据类型转换成 Date String inputDate = "2021-04-11";Date outputDate = null;SimpleDateForma ...
- oracle do date,Oracle to_date函数的使用
insert into tabname(datecol) value(sysdate) ; -- 用date值 insert into tabname(datecol) value(sysdate+1 ...
- Cannot format given Object as a Date
出现这个错误 是SimpleDateFormat 里面2个属性parse 与 format 这个2个属性不清楚导致的 这个问题的修改就是 format 里面的属性是Date 返回的是String 所 ...
- Unparseable date: 2015-8-8
这个错误一般使用SimpleDateFormat 时间格式与后面指定的格式不一样因一起的 比如下面这样不报错 String time = "2019-8-8";SimpleDate ...
- java Date 和 数据库Date,DateTimed
Java 向数据库中输入datetime类型数据 Java 可以使用jdbc访问数据库,我们通常使用的时间是java.utils.Date.后来尝试使用java.sql.Date朝数据库中写入时间,发 ...
- Java Date类
1.1 Date类概述 类 Date 表示特定的瞬间,精确到毫秒. 继续查阅Date类的描述,发现Date拥有多个构造函数,只是部分已经过时,但是其中有未过时的构造函数可以把毫秒值转成日期对象. // ...
- html5手机端设置date,如何在移动端更好地使用HTML5 date input
烙印99 众所周知,HTML5新增了几种input类型,比如email, number, url, range, date等.这些input类型在一定程度上方便了我们做输入限制和数据校验.但是不同的浏 ...
最新文章
- 关于汽油清洁剂,到底该不该加?
- 慢动作输出Linux命令结果并用彩色显示
- 数学图形(1.43)贝壳形曲线与鱼形曲线
- 冲击中国超融合第一,浪潮的底气从何而来?
- mybatis的缓存机制是怎么样的?
- Odoo10参考系列--工作流
- MixConv: Mixed Depthwise Convolutional Kernels
- 数组中每个元素都出现了两次,但是其中一个元素只出现了一次,求出此元素
- 【转】Nginx双机热备高可用解决方案【二】
- 升级安装php7要考虑的几个方面
- Java jdk下载安装与配置及其不同版本jdk切换
- 经典推荐:盛大架构师周爱民回顾职业历程,分享十项建议
- jquery--图片传送带
- 小刚明白锻炼的重要性,每天坚持走10000步。这一天,他已经走了一些步,想知道还要走多少步才能完成这一天的锻炼任务。请你帮帮他。
- 关于PEM, DER, CRT, CER,KEY等各类证书与密钥文件后缀的解释
- 新办林业规划资质(丙级)应具备的条件?
- L1正则化和L2正则化(从解空间角度)
- MongoDB语法案例
- Oracle安装时物理内存检查失败的解决方案:
- 多媒体计算机的概念是,多媒体计算机的基本概念.doc