| 记录编号 | 227298 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 972.[NOIP 2005]陶陶摘苹果 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.003 s | ||
| 提交时间 | 2016-02-18 16:09:48 | 内存使用 | 0.31 MiB | ||
#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int a[11];
int flag;
int main()
{
freopen("apple.in", "r", stdin);
freopen("apple.out", "w", stdout);
for(int i=1;i<=10;i++)
{
cin>>a[i];
}
int T;
cin>>T;
sort(a+1,a+11);
cout<<upper_bound(a+1,a+11,T+30)-a-1;
return 0;
}