過去ログ

ゴンとも
十進basicで139通り列挙するプログラムで

for a=0 to 6
for b=0 to 6
let x=2^a*5^b
for c=0 to 6
for d=0 to 6
let y=2^c*5^d
for e=0 to 6
for f=0 to 6
let z=2^e*5^f
if x<=y and y<=z and x*y*z=1000000 then print x;y;z
next f
next e
next d
next c
next b
next a
end
豊川市   3月3日(木) 0:47:38   MAIL:fttnm528@ybb.ne.jp   37482

過去問題一覧へ戻る