为啥unaccepted,0分。在code block里面运行成功了啊明明
查看原帖
为啥unaccepted,0分。在code block里面运行成功了啊明明
1169511
xnwygsw楼主2024/1/5 10:18
#include<iostream>
using namespace std;
int main()
{
    int height[10],Taotao,j;
    for(int i=0;i<10;i++)
    {
        cin>>height[i];
    }
    cout<<endl;
    cin>>Taotao;
    Taotao+=30;
    for(int i=0;i<10;i++)
    {
        if(Taotao>=height[i])
        {
            j++;
        }
    }
    cout<<j;
    return 0;
}
2024/1/5 10:18
加载中...