|
ゴンとも |
|
十進Basic でa,b,c,d,e,fと並べて
FOR a=1 to 6 FOR b=1 to 6 if b=a then goto 50 FOR c=1 to 6 if c=a or c=b then goto 40 FOR d=1 to 6 if d=a or d=b or d=c then goto 30 FOR e=1 to 6 if e=a or e=b or e=c or e=d then goto 20 FOR f=1 to 6 if f=a or f=b or f=c or f=d or f=e then goto 10 if a>b AND b<c AND c<d AND d<e AND e<f then let s1=s1+1 if a<b AND b>c AND c<d AND d<e AND e<f then let s2=s2+1 if a<b AND b<c AND c>d AND d<e AND e<f then let s3=s3+1 if a<b AND b<c AND c<d AND d>e AND e<f then let s4=s4+1 if a<b AND b<c AND c<d AND d<e AND e>f then let s5=s5+1 10 next f 20 next e 30 next d 40 next c 50 next b 60 next a print s1;"+";s2;"+";s3;"+";s4;"+";s5;"=";s1+s2+s3+s4+s5 END f9押して 5+14+19+14+5=57・・・・・・(答え) |
|
豊川市
2月18日(木) 0:35:37
44174 |