<html>
<head>
<meta charset="utf-8">
</head>
<body>
</body>
<script>
var 显示="";
for(var i=100;i<1000;i++){
var 百位=i/100>>0;
var 十位=(i/10>>0)%10;
var 个位=i%10;
if(i==(百位*百位*百位+十位*十位*十位+个位*个位*个位))显示+=i+",";
}
document.body.innerHTML=显示;
</script>
</html>
<head>
<meta charset="utf-8">
</head>
<body>
</body>
<script>
var 显示="";
for(var i=100;i<1000;i++){
var 百位=i/100>>0;
var 十位=(i/10>>0)%10;
var 个位=i%10;
if(i==(百位*百位*百位+十位*十位*十位+个位*个位*个位))显示+=i+",";
}
document.body.innerHTML=显示;
</script>
</html>