過去ログ

ゴンとも
#44128

>2.5だとちょっと丁寧に計算する必要がありますね

やってみました。十進Basic で

for a=100 to 999
for b=int(2*a/5) to int(2*a/5)
for c=int(2*b/5) to int(2*b/5)
if int(2*c/5)=7 then let s1=s1+1
for d=int(2*c/5) to int(2*c/5)
if int(2*d/5)=7 then let s2=s2+1
for e=int(2*d/5) to int(2*d/5)
if int(2*e/5)=7 then let s3=s3+1
next e
next d
next c
next b
next a
PRINT s1;"+";s2;"+";s3;"=";s1+s2+s3
end

f9押して 12+30+75=117・・・・・・(答え)
113から124,283から312,708から782

あってますでしょうか?
豊川市   2月4日(木) 1:43:57   MAIL:fttnm528@ybb.ne.jp   44131

過去問題一覧へ戻る