񤯤Ȳ򤤤ƤʤͤˤФ㤤ޤ
827ڡ 0:04:31 49458
Ȥ
Basic

FOR a=0 TO 6
FOR b=0 TO 6
FOR c=0 TO 6
FOR d=0 TO 6
FOR e=0 TO 6
IF a+b+c+d+e<=6 THEN LET s=s+1
NEXT e
NEXT d
NEXT c
NEXT b
NEXT a
PRINT s
end

f9ơ462()
˭ԡ 827ڡ 0:05:20 MAIL:fttnm528@ybb.ne.jp 49459
Ȥʤ
1ɲäǥ¤ˤơ6Ĥ΢ȣܤλڤǹͤ11C5Ǥ
827ڡ 0:07:35 49460
Mr.ǥ
#49458 ֺ񤯤Ȳ򤤤ƤʤͤˤФ㤤ޤ
줽顢ʤä㤤
827ڡ 0:08:53 49461
٥륯åĥ
610987/4321ˡ210̤ꡢ
5126̤ꡢ
470̤ꡢ
335̤ꡢ
215̤ꡢ
15̤ꡢ
01̤ꡢ
462̤Ǥ
827ڡ 0:11:42 49462
ǯ
6Ĥʣ6Ĥˤ櫓ơǽ餫顢ǸϼΤƤ롣
11C5=462
827ڡ 0:12:31 49463
Mr.ǥ
꤬ͤʤ줿Τ#49458θפȤʤޤ͡
6ĤΡȣܤλڤ¤١ڤ˶ڤ줿6ˤ롻θĿ򺸤顡(,,,,,¤6ʤ)бФ褤Τ
11C5462̤ˤȤޤ(#49460ƱǤ
827ڡ 0:18:21 49464
ֿء׾ι
Ż̵Ǥ
827ڡ 0:22:21 49465
٥륯åĥ
ʤۤɡ6ĤˤдñäǤ͡
ٶˤʤޤ
827ڡ 0:23:46 49466
鯤ο
0奢ġܥܥܥܥ壶Ȥ߹碌ϡ
奢ġܥܥܥܥ11Ȥ߹碌
ˡ
奢ġܥܥܥܥܥ12Ȥ߹碌顢
δ11Τ5˥åȤοƱ
11C5462
//
827ڡ 0:37:37 49467
ޤ
ŪᤤʳǤޤ(^^;

#49462 ٥륯åĥƱ͡ʬޤ
#49464 Mr.ǥޡ#4967 鯤οͤޡΤ褦
ꥹޡȤʲΤǤ͡ٶˤʤޤ

ơꡢϤ狼äΤǤ
ڤǤƤʤΤǡ³ͤ뤳Ȥˤޤ(^^;

somewhere in the world 827ڡ 0:58:25 49468
ߤ
#49462ƱˡǤ

¤ˤʤΤϲ̤ꡩפȤ褦βˡ֤Ǥ
ݤȻڤ¤٤ˡǤΡ¤ʲפξǤ
칩פФä꽪Ǥ͡ٶˤʤޤ
827ڡ 1:16:26 49469
(Keigei)
115462
827ڡ 4:31:36 49470
ϥ饮㡼ƥ
OCTAVEˤͷ׻Ǥ

Ƕᡢ򤤤Ƥޤ
ڤǤ
ԡ 827ڡ 4:55:15 HomePage:湩ؤ˥49471
ϥ饮㡼ƥ
Τͷ׻Mathematicaˤ
׻ʤɤڤǤޤ
ԡ 827ڡ 4:57:06 HomePage:湩ؤ˥49472
???
EXCELޥǡݤФ
Sub Macro1()
Cells(1, 1).Value = 0
For a = 0 To 6
For b = 0 To 6 - a
For c = 0 To 6 - a - b
For d = 0 To 6 - a - b - c
For e = 0 To 6 - a - b - c - d
Cells(1, 1).Value = Cells(1, 1).Value + 1
Cells(Cells(1, 1).Value, 2).Value = a
Cells(Cells(1, 1).Value, 3).Value = b
Cells(Cells(1, 1).Value, 4).Value = c
Cells(Cells(1, 1).Value, 5).Value = d
Cells(Cells(1, 1).Value, 6).Value = e
Range("B" & Cells(1, 1).Value).Select
Next e
Next d
Next c
Next b
Next a
End Sub
827ڡ 8:32:37 49473
ֿء׾ι
ʬ016ξοCȤäƹפȡ
4C0+5C1+6C2+7C3+8C4+9C5+10C6Ǥϡ
6C1+6C2+7C3+8C4+9C5+10C6
=7C2+7C3+8C4+9C5+10C6
=8C3+8C4+9C5+10C6
=9C4+9C5+10C6
=10C5+10C6
=11C6
äΤǡ˵դаŻǤΤˡ̵ǰǤ
827ڡ 9:25:42 49474
ֿء׾ι
#49467奢ġܥܥܥܥܥ12Ȥ߹碌

ĺơ˸ơ
0ʾΣĤǹף
Ȥȡ6H6 äƤΤ⤢Ǥ͡
827ڡ 9:30:08 49475
̴
0,1,2,3,4,56Σʣ
5ĤȤȤ߹碌7H5=11C5Ƿ׻פޤ
827ڡ 9:34:38 49476
Ѥ
11!/(6!5!)Ƿ׻ޤ
ҤӤޤäƤۤäȤޤ
827ڡ 12:20:54 49480
ˤ
11㣵ǤĤȢˣĤζ̤ο
Ķļˡ 827ڡ 17:55:12 49481

56İʲζ̤뢪66Ĥζ̤ȹͤ6H6=11C6Ƿ׻ޤ
827ڡ 19:12:22 49482

6Ĥ5ĤǶڤäơ줾ζڤδ֤΢οˤˤФ褤Τǡ
ááááä¤ǡ11C5Ǥ͡
ԡ 827ڡ 23:31:26 49483
ˤ
ְ㤨ޤ66Ĥζ̤򤤤Ǥ
Ķļˡ 827ڡ 23:37:15 49484
ޤ
#49474 ֿء׾ιԤ

11C6˵ŤΤϤϤꡢиʤܤʤʤ
ξʬǤη׻11C6˻äƤʤʡ
ȹͤƤߤޤߥʤǤޤǤ

꤬Ȥޤ
somewhere in the world 828ʶ 2:22:13 49485
ֿء׾ι
#49485ޤ
̤Ǥ
ѥλѷįƤȤ߹碌Ϣ
ʸƳޤ͡
828ʶ 10:28:50 49486

ͤ
828ʶ 20:27:45 49487
ֿء׾ι
rubyʤ顢
p (0..6).to_a.repeated_permutation(5).to_a.delete_if{|x|x.sum>6}.size
Ǥ͡
829ڡ 7:04:26 49488
SECOND
!BASIC ˤ롢ʣȹ礻 H(7,5)=H(6,6)=462 θ Ÿȡ200ms

LET n=7 !6
LET r=5 !6
DIM a(n+r)
DATA 1,2,3,4,5,6,7,0,0,0,0, 0
MAT READ a
CALL hom20(1,1)

SUB hom20(k,p)
local i
IF k<=r THEN
FOR i=p TO n+r-1
IF n< i THEN LET a(i)=a(i-n)
swap a(k),a(i)
CALL hom20(k+1,i+1)
swap a(k),a(i)
NEXT i
ELSE
LET a(n+r)=a(n+r)+1 !a() ü˥󥿡
MAT PRINT a; !ʣȹ礻: a(1)~a(r)
END IF
END SUB
829ڡ 16:25:28 49489
M
pythonǷ׻

import random
ans = []
for i in range (10000000):
a = random.randint(0,6)
b = random.randint(0,6)
c = random.randint(0,6)
d = random.randint(0,6)
e = random.randint(0,6)
x = a + b + c + d + e
y = a* 10000 + b*1000 + c*100 + d*10 + e
if x <= 6:
ans.append(y)
final_ans = set(ans)
print(len(final_ans))
829ڡ 16:51:41 49490
ޤ
#49486 ֿء׾ιԤ

ޤơ̤Ǥޤm(_ _)m
Ⱦ̤ʥ勵ǤϡϤǻפĤȤ񤷤ǤʶС
ּ꺢ʡפΤޤ顢ޤm(_ _)m

ͥåȤˤƤȡΤ褦ʤΤˤޤ
ǤƤޤ󤬡ڤߤϿԤޤ

http://blog.livedoor.jp/ddrerizayoi/archives/cat_869261.html

somewhere in the world 830 5:26:44 49491
ֿء׾ι
ܤ˺ܤäƤγʸˡ
ֱʱ˹ˤʤꤿäФʤ
ȤΤ뤽Ǥ
ֻءפФʤ褦ʸʤ褦ʡ
92ʿ 9:44:36 49492
ޤ륱
#49488
rubyΥ饤ʡäûʤޤ

p (7**5).times.map{|n|(eval n.to_s(7).chars*"+")<7}.count(true)

06ޤǤ5οΤ7ʿ
פη׻ϡʸФ餷"+"ǤĤʤevalɾ
ʸ餹ˡ6ʲΤȤ7̤

⤦ۤȤɥѥǤ͡
92ʿ 10:26:52 49493