package cn.lijun.demo6; public class Test2 { public static void main(String[] args) { for(int i=100;i<1000;i++){ int bai=i/100%10; int shi=i/10%10; int ge=i%10; if(i==bai*bai*bai+shi*shi*shi+ge*ge*ge){ System.out.println(i); } } } }
原文地址:https://www.cnblogs.com/qurui1998/p/10525477.html
时间: 2024-10-13 12:02:23