|
ゴンとも |
|
ベン図で
アだけ=a,イだけ=b,ウだけ=c, 全問正解でなくア,イの2問=d 全問正解でなくイ,ウの2問=e 全問正解でなくウ,アの2問=f 全問正解者=g として 十進Basic で print time$ for a=1 to 25 for b=1 to 25 if a+b>25 then goto 60 for c=1 to 25 if a+b+c>25 or b+c<>(a+b+c)/2 then goto 50 for d=1 to 25 if a+b+c+d>25 then goto 40 for e=1 to 25 if a+b+c+d+e>25 or b+e<>2*(c+e) then goto 30 for f=1 to 25 if a+b+c+d+e+f>25 then goto 20 for g=1 to 25 if a+b+c+d+e+f+g<>25 or a<>d+f+g+1 then goto 10 print a;b;c;d;e;f;g 10 next g 20 next f 30 next e 40 next d 50 next c 60 next b 70 next a print time$ end f9押して 00:26:52 8 6 2 1 2 1 5 8 6 2 1 2 2 4 8 6 2 1 2 3 3 8 6 2 1 2 4 2 8 6 2 1 2 5 1 8 6 2 2 2 1 4 8 6 2 2 2 2 3 8 6 2 2 2 3 2 8 6 2 2 2 4 1 8 6 2 3 2 1 3 8 6 2 3 2 2 2 8 6 2 3 2 3 1 8 6 2 4 2 1 2 8 6 2 4 2 2 1 8 6 2 5 2 1 1 00:26:52 よりb=6・・・・・・(答え) |
|
豊川市
11月8日(木) 0:34:12
MAIL:fttnm528@ybb.ne.jp 47729 |