vs上完全正确,这里怎么就错了。。

P1046 [NOIP2005 普及组] 陶陶摘苹果

labman00x @ 2015-11-05 15:18:28

#include<iostream>
using namespace std;
int main()
{int a[10],b;
    for(int i=0;i<=9;i++)
    {   cin>>a[i];
    }
    cout<<endl;
    cin>>b;cout<<endl;
    int n=0;
    for(int i=0;i<=9;i++)
    {   if(b+30>=a[i])
        n++;
    }
    cout<<n;
}

by CLchenlei @ 2015-11-05 15:22:43

codevs?


by 一个人飞翔 @ 2015-11-05 16:03:37

输什么换行啊


by mob_spawner @ 2015-11-05 16:30:02

逗必 cout<<endl;


by lyricleeee04 @ 2016-08-14 16:30:47

vs是什么鬼?


|