|
ゴンとも |
|
十進Basic で
for a=0 to 1 for b=0 to 1 for c=0 to 1 if a+b+c=0 or a+b+c=3 then goto 110 for d=0 to 1 if b+c+d=0 or b+c+d=3 then goto 100 for e=0 to 1 if c+d+e=0 or c+d+e=3 then goto 90 for f=0 to 1 if d+e+f=0 or d+e+f=3 then goto 80 for g=0 to 1 if e+f+g=0 or e+f+g=3 then goto 70 for h=0 to 1 if f+g+h=0 or f+g+h=3 then goto 60 for i=0 to 1 if g+h+i=0 or g+h+i=3 then goto 50 for j=0 to 1 if h+i+j=0 or h+i+j=3 then goto 40 for k=0 to 1 if i+j+k=0 or i+j+k=3 then goto 30 for l=0 to 1 if j+k+l=0 or j+k+l=3 then goto 20 for m=1 to 1 if j+k+l=3 then let s=s+1 10 next m 20 next l 30 next k 40 next j 50 next i 60 next h 70 next g 80 next f 90 next e 100 next d 110 next c 120 next b 130 next a print s end f9押して 89・・・・・・(答え) |
|
豊川市
8月3日(木) 0:12:34
MAIL:fttnm528@ybb.ne.jp 52652 |