署mvc


私信TA

用户名:www123

访问量:9265

签 名:

继续加油

等  级
排  名 2253
经  验 2307
参赛次数 0
文章发表 16
年  龄 22
在职情况 学生
学  校
专  业

  自我简介:

不知道为啥1不行

参考代码:

public static void main(String[] args){
		for(int i=2;i<200000;i++){
			int a=i/100000;
			int b=i/10000%10;
			int c=i/1000%10;
			int d=i%1000/100;
			int e=i%100/10;
			int f=i%10;
			int sum=(int) Math.pow(a, 5)+(int) Math.pow(b, 5)+(int) Math.pow(c, 5)+(int) Math.pow(d, 5)+(int) Math.pow(e, 5)+(int) Math.pow(f, 5);
			if(sum==i){
				System.out.println(sum);
			}
		}
	}


 

0.0分

0 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区