過去ログ

「数学」小旅行
まず、手計算で求めましたが、プログラムでも確かめました。
REM Start of BASIC! Program
for a=1 to 4
for b=1 to 4
for c=1 to 4
for d=1 to 4
for e=1 to 4
if (a-1)*(b-1)=0 & (b-1)*(c-1)=0 & (c-1)*(d-1)=0 & (d-1)*(e-1)=0 then k=k+1
next
next
next
next
next
print k
   2月25日(木) 0:43:05     44206

過去問題一覧へ戻る