z2415445508 @ 2017-05-18 20:42:00
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
freopen("apple.in","r",stdin);
freopen("apple.out","w",stdout);
int i,j;
int a[11],tt,sum=0;
for(i=1;i<=10;i++)
{
cin>>a[i];
}
cin>>tt;
tt=tt+30;
for(i=1;i<=10;i++)
{
if(tt>=a[i]) sum++;
}
cout<<sum<<endl;
return 0;
}
by deluxurous @ 2017-05-18 20:50:14
文件操作
by z2415445508 @ 2017-05-19 13:00:22
@Antonio 洛谷不能用freopen吗?
by deluxurous @ 2017-05-19 13:03:49
@z2415445508 洛谷不用文件操作
by z2415445508 @ 2017-05-19 13:10:21
@Antonio 知道了
谢谢
by 盐汽水泡面 @ 2017-05-27 12:57:36
你的解答表示苹果掉下来陶陶就被砸死了
by S0lution @ 2017-06-14 19:41:41
可以不用文件操作