|
ゴンとも |
|
十進Basic で
for a=1 to 3 for b=a to 3 for c=b to 3 for d=1 to 3 for e=d to 3 for f=e to 3 if (a>d and b>e and c<f) or (a>d and b<e and c>f) or (a<d and b>e and c>f) or (a<d and b<e and c>f) or (a<d and b>e and c<f) or (a>d and b<e and c<f) or (a=d and b>e and c<f) or (a=d and b<e and c>f) or (a>d and b=e and c<f) or (a<d and b=e and c>f) or (a>d and b<e and c=f) or (a<d and b>e and c=f) then let s=s+1 10 next f 20 next e 30 next d 40 next c 50 next b 60 next a print s end f9押して 10・・・・・・(答え) あと以下の10通り! 1 1 3 1 2 2 1 1 3 2 2 2 1 2 2 1 1 3 1 2 3 2 2 2 1 3 3 2 2 2 1 3 3 2 2 3 2 2 2 1 1 3 2 2 2 1 2 3 2 2 2 1 3 3 2 2 3 1 3 3 |
|
豊川市
8月15日(木) 0:32:14
48331 |