1 条题解

  • 1
    @ 2025-7-26 12:57:47
    #include<bits/stdc++.h>
    using namespace std;
    int a,b;
    int main()
    {
    	for(int i=1000;i<=9999;i++)
    	{
    		a=i%100;
    		b=i/100;
    		if((a+b)*(a+b)==i) cout<<i<<" ";
    	}
    	return 0;
    }
    
    • 1

    信息

    ID
    110
    时间
    1000ms
    内存
    64MiB
    难度
    6
    标签
    递交数
    34
    已通过
    12
    上传者