题解 | #abc#
abc
https://www.nowcoder.com/practice/912b15e237ef44148e44018d7b8750b6
#include <iostream> using namespace std; int main() { int a=0,b=0,c=0,sum=0; for (int i = 0; i <= 9; i++) { a=i; for (int j = 0; j <= 9; ++j) { b=j; for (int k = 0; k <= 9; ++k) { c=k; sum+=a*100+b*10+c + b*100+ c*10+c; if(sum==532){ cout <<a<<" "<<b<<" "<<c<<" "; } sum=0; } } } }#暴力破解#