1 #include2 using namespace std; 3 4 int sum_10; 5 int sum_12; 6 int sum_16; 7 int fun_10(int num); 8 int fun_12(int num); 9 int fun_16(int num);10 int main()11 {12 // freopen("acm.acm","r",stdin);13 sum_10 = 0;14 sum_12 = 0;15 sum_16 = 0;16 int i;17 for(i = 1000; i <= 9999; ++ i)18 {19 sum_10 = fun_10(i);20 sum_12 = fun_12(i);21 if(sum_10 != sum_12)22 {23 continue;24 }25 sum_16 = fun_16(i);26 if(sum_10 == sum_16 && sum_12 == sum_10)27 {28 cout< <
关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。
技术网站地址: