题解 | abc
abc
https://www.nowcoder.com/practice/912b15e237ef44148e44018d7b8750b6
#include "stdio.h" using namespace std; int main(){ for(int a = 0;a<10;++a){ for(int b=0;b<10;++b){ for(int c = 0;c<10;++c){ if(532==(a*100+b*10+c)+(b*100+10*c+c) ){ printf("%d %d %d",a,b,c); } } } } }
机试题练习 文章被收录于专栏
机试题练习