|
ゴンとも |
|
十進basic で4桁の整数をabcd として
for a=1 to 9 for b=0 to 9 if b=a then goto 30 for c=0 to 9 if c=a or c=b then goto 20 for d=0 to 9 if d=a or d=b or d=c then goto 10 if a+b<>9 and a+c<>9 and a+d<>9 and b+c<>9 and b+d<>9 and c+d<>9 then let s=s+1 10 next d 20 next c 30 next b 40 next a print s end f9押して 1728・・・・・・(答え) |
|
豊川市
8月27日(木) 0:06:22
MAIL:fttnm528@ybb.ne.jp 43640 |