私信TA
用户名:WuWenL
访问量:18528
签 名:
勿忘初心
自我简介:
作者: WuWenL 发表时间:2018-01-04 17:35:18 浏览:621 | 评论:0
参考代码:
public class Main { public static void main(String[] args) { for(int n=100;n<=999;n++){ int a=n/100,b=n/10-a*10,c=n%10; if(Math.pow(a, 3)+Math.pow(b, 3)+Math.pow(c, 3)==n){ System.out.println(n); } } } }
0.0分
0 人评分
看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:
编程语言转换万能编程问答
代码解释器
代码纠错
SQL生成与解释