過去ログ

ゴンとも
十進basic で

問題図で変数を 
ab/
cde
/efとおくと

for a=1 to 5
for b=1 to 5
if b=a then goto 60
for c=1 to 5
if c=a then goto 50
for d=1 to 5
if d=a or d=b or d=c then goto 40
for e=1 to 5
if e=b or e=d then goto 30
for f=1 to 5
if f=c or f=d then goto 20
for g=1 to 5
if g=d or g=e or g=f then goto 10
let s=s+1
10 next g
20 next f
30 next e
40 next d
50 next c
60 next b
70 next a
print s
end

f9押して 3660通り・・・・・・(答え)
豊川市   12月25日(木) 0:13:39   MAIL:fttnm528@ybb.ne.jp   42746

過去問題一覧へ戻る