• ようこそゲストさん!

auge (17)さんの日記

(SNS全体・外部に公開(Web全体に公開))

2016年
01月02日
12:45 auge (17)さん

ネタバレ注意

http://www.huffingtonpost.jp/satoshi-kagimoto/2016_3_b_89...

みんな大好きhuffingtonpost。その日本語版。そのブログ。
問題のシェアはしても答えは載せるな、といわれたら、答えだけ載せたくなるのが心情ということでw

A B C D E F G H
7 2 8 9 3 4 5 6
7 2 8 9 3 4 6 5
7 2 8 9 3 5 4 6
7 2 8 9 3 5 6 4
7 2 8 9 3 6 4 5
7 2 8 9 3 6 5 4
7 2 9 4 3 5 6 8
7 2 9 4 3 5 8 6
7 2 9 4 3 6 5 8
7 2 9 4 3 6 8 5
7 2 9 4 3 8 5 6
7 2 9 4 3 8 6 5
8 9 7 2 3 4 5 6
8 9 7 2 3 4 6 5
8 9 7 2 3 5 4 6
8 9 7 2 3 5 6 4
8 9 7 2 3 6 4 5
8 9 7 2 3 6 5 4
9 4 7 2 3 5 6 8
9 4 7 2 3 5 8 6
9 4 7 2 3 6 5 8
9 4 7 2 3 6 8 5
9 4 7 2 3 8 5 6
9 4 7 2 3 8 6 5

検算よろしく~
  • 総アクセス数(2,203)
  • 拍手拍手(0)
  • お気に入りお気に入り(0)

コメント

1番~1番を表示

2016年
01月02日
12:47
auge (17)さん

ごりおしまくろでけいさんしたなり

REM ***** BASIC *****

Sub Main
Dim A as integer
Dim B as integer
Dim C as integer
Dim D as integer
Dim E as integer
Dim F as integer
Dim G as integer
Dim H as integer
Dim var as integer
Dim Sheet As Object

Sheet = ThisComponent.CurrentController.ActiveSheet

var=3

FOR A =1 TO 9
FOR B=2 TO 9
if b<>a then
FOR C =2 TO 9
if c<>a and c<>b then
FOR D =2 TO 9
if d<>a and d<>b and d<>c then
FOR E =2 TO 9
if e<>a and e<>b and e<>c and e<>d then
FOR F =2 TO 9
if f<>a and f<>b and f<>c and f<>d and f<>e then
FOR G =2 TO 9
if g<>a and g<>b and g<>c and g<>d and g<>e and g<>f then
FOR H =2 TO 9
if h<>a and h<>b and h<>c and h<>d and h<>e and h<>f and h<>g then
IF ((10*A+B)*(10*C+D)/E-(F*G*H))=2016 then
sheet.getcellbyposition(2,var).value=A
sheet.getcellbyposition(3,var).value=B
sheet.getcellbyposition(4,var).value=C
sheet.getcellbyposition(5,var).value=D
sheet.getcellbyposition(6,var).value=E
sheet.getcellbyposition(7,var).value=F
sheet.getcellbyposition(8,var).value=G
sheet.getcellbyposition(9,var).value=H
var=var+1
endif
endif
next
endif
next
endif
next
endif
next
endif
next
endif
next
endif
next
next
End Sub

1番~1番を表示