1 条题解

  • 1
    @ 2025-8-22 13:27:13

    范围特小,数据特小。

    暴力枚举即可

    #include<bits/stdc++.h>
    
    using namespace std;
    
    int main(){
    
    	for(int a=0;a<=9;a++)
    
    		for(int b=0;b<=9;b++)
    
    			for(int c=0;c<=9;c++)
    
    				if((a*100+b*10+c)+(b*100+c*10+c)==532)
    
    					printf("%d %d %d\n",a,b,c);
    
    	return 0;
        
    }
    
    • 1

    信息

    ID
    5
    时间
    1000ms
    内存
    32MiB
    难度
    9
    标签
    递交数
    8
    已通过
    6
    上传者