1 条题解

  • 0
    @ 2023-4-10 22:18:19
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int x;
        for(int i=1000;i<=9999;i++)
        {
             x=i/1000+i/100%10*10+i/10%10*100+i%10*1000;
             if(i*9==x)	cout<<i;
        }
        return 0;
    }
    

    信息

    ID
    2
    时间
    1000ms
    内存
    32MiB
    难度
    5
    标签
    递交数
    148
    已通过
    59
    上传者