不会,求解。

B2068 统计满足条件的 4 位数

zyf110603110 @ 2024-04-01 20:38:59


by _safdsfdeaf_ @ 2024-04-01 20:42:23

小学生来发题解了!

#include<iostream> 
using namespace std;
int main()
{
    int k=0,n,x;
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>x;
        int q=x/1000,b=x%1000/100,s=x%100/10,g=x%10;
        if(g-q-b-s>0)
            k++;
    }
    cout<<k<<endl;
    return 0;
}

学废了敲一个“废了,赞!”


by zyf110603110 @ 2024-04-01 20:43:29

“废了,赞!”


by _safdsfdeaf_ @ 2024-04-01 20:43:36

求互关,团队急需人才https://www.luogu.com.cn/team/74508


by zyf110603110 @ 2024-04-01 20:49:39

关了and加了


by 18106885189zhou2 @ 2024-06-03 16:54:22

@safdsfdeaf 我也加


by yinzexuan @ 2024-06-27 16:39:53

废了,赞!


by zyf110603110 @ 2024-11-25 20:14:49

@yinzexuan哦⊙0⊙?


|