過去ログ

「数学」小旅行
プログラムすると前回と同じような感じです。
今回はタブレットのアプリ、BASICを使ってみました。
for a=0 to 1
for b=0 to 1
for c=0 to 1
for d=0 to 1
for e=0 to 1
for f=0 to 1
for g=0 to 1
for h=0 to 1
for i=0 to 1
if (a*b-1)*(b*c-1)*(c*d-1)*(d*e-1)*(e*f-1)*(f*g-1)*(g*h-1)*(h*i-1)<>0 then
s=s+1
endif
next a
next b
next c
next d
next e
next f
next g
next h
next i
print s

以上です。
   12月10日(木) 5:16:35     43962

過去問題一覧へ戻る