为啥有错误?(求大佬解答)
查看原帖
为啥有错误?(求大佬解答)
740885
Zhangjunjia0202楼主2022/9/2 20:19
#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,x,y=0;
    cin>>n>>x;
    for(int i=1;i<=x;i++){
        int c;
        cin>>c;
        if(c>=x){
            c-=x;
        }else{
           y++; 
        }
    }
    printf("%d\n",y);
    return 0;
}
2022/9/2 20:19
加载中...