HDU 6066 RXD's date(水~)
2017-08-07 09:44
369 查看
Description
给出n个数,问不大于35的数有多少个
Input
第一行一整数n,之后n个整数a[i] (1<=t<=1000,0<=a[i]<=50)
Output
输出n个整数中不大于35的数的个数
Sample Input
5
33 34 35 36 37
Sample Output
3
Solution
水题
Code
给出n个数,问不大于35的数有多少个
Input
第一行一整数n,之后n个整数a[i] (1<=t<=1000,0<=a[i]<=50)
Output
输出n个整数中不大于35的数的个数
Sample Input
5
33 34 35 36 37
Sample Output
3
Solution
水题
Code
#include<cstdio> using namespace std; const int maxn=1001; int main() { int n,a,ans=0; scanf("%d",&n); for(int i=1;i<=n;i++) { scanf("%d",&a); if(a<=35)ans++; } printf("%d\n",ans); return 0; }
相关文章推荐
- 2017 多校训练第三场 HDU 6066 RXD's date
- hdu 6066-RXD's date
- 17 多校 3 - 1011 - RXD's date (HDU 6066)
- RXD's date(HDU 6066)
- 【多校训练】hdu 6066 RXD's date
- HDU 6066 17多校3 RXD's date(超水题)
- HDOJ 6066-RXD's date
- hdoj 6066(2017 Multi-University Training Contest - Team 3) RXD's date
- hdu 6065 RXD, tree and sequence
- HDU 6064 RXD and numbers(BEST定理)
- hdu--6060-RXD and dividing
- HDU 6060 RXD and dividing
- HDU 6065 RXD, tree and sequence 分析+01背包
- RXD and math(HDU 6063 快速幂)
- HDU 6063 RXD and math【数学】
- HDU 6063 RXD and math
- 2017 多小训练第三场 HDU 6061 RXD and functions
- 2017多校第3场 HDU 6060 RXD and dividing 思维,构造最优解
- HDU 6060 RXD and dividing [想法题]
- hdu-6063-RXD and math