解题思路:
注意事项:
参考代码:
#include <iostream> #include <cmath> using namespace std; int main() { for (int t = 100; t < 999; t++) { if (t == pow(t % 10, 3) + pow(t / 10 % 10, 3) + pow(t / 100, 3)) cout << t << endl; } return 0; }
0.0分
1 人评分
时间转换 (Java代码)浏览:609 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:778 |
上车人数 (C语言代码)浏览:809 |
大小写转换 (C语言代码)浏览:899 |
剪刀石头布 (C语言代码)不知道怎么直接在scanf中用枚举变量浏览:1423 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:603 |
程序员的表白 (C语言代码)浏览:695 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:1212 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:548 |
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)浏览:566 |