这个错在哪里了,我自己输入都是对的啊

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

God_Irving @ 2024-10-31 22:33:09

#include <stdio.h>  
int main ()  
{  
    int height_1,height_2,a[10];  
    int i=0;   
    int count=0;  
    for (i=0;i<10;i++)  
    {    
       scanf("%d\ ",&height_1);  
       a[i]=height_1;  
    }  
    printf("\n");  
    scanf("%d",&height_2);  
    for (i=0;i<10;i++)  
    {  
       if(height_2+30>=a[i])  
        count+=1;  
       else  
        count=count;  
    }  
    printf("%d",count);  
    return 0; 
}  

by LiujunjiaNC @ 2024-10-31 22:37:52

@wear_sexy_underwear 第12行

printf("\n");  

by God_Irving @ 2024-11-01 10:55:40

@LiujunjiaNC
谢谢!


|