EG
°ìÈÖ¾å¤ÎÃʤò1234¤Ë¸ÇÄꤷ¤Æ¡¤²¼£²ÃÊÁȤ߹ç¤ï¤»¤¬24Ä̤ꡤ
°ìÈÖ¾å¤ÎÃʤÎʤÙÂؤ¨¤¬24Ä̤ê¤Ê¤Î¤Ç¡¤24¡ß24¡á576¤È¤·¤Þ¤·¤¿¡£
¾Ç¤Ã¤Æ¤¿¤Î¤ÇÅÓÃæ¤Ç¥ß¥¹¤·¤Þ¤¯¤Ã¤Æ2²ó¤â¸íÅúÁ÷¿®¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿(ÎÞ)¡£
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 0:13:04¡¡¡¡ ¡¡¡¡50026
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§
°ì¹ÔÌܤηè¤áÊý¤Ï4¡ß3¡ß2¡ß1¡á24Ä̤ꡣ
Æó¹ÔÌܤò1¤È2¡¢3¤È4¤Î¤è¤¦¤Ë2¤Ä¤º¤ÄÆþ¤ìÂؤ¨¤ë¾ì¹ç¡¢Æþ¤ìÂؤ¨Êý¤Ï3Ä̤ê¤Ç¡¢»°¹ÔÌܤÏ12¤Î¤È¤³¤í¤Ë34¤¤¤º¤ì¤«¡¢34¤Î¤È¤³¤í¤Ë12¤¤¤º¤ì¤«¤¬Æþ¤ë¤Î¤Ç2¡ß2¡á4tÄ̤ꡢ¤è¤Ã¤Æ3¡ß4¡á12Ä̤ꡣ
Æó¹ÔÌܤò1¢ª2¢ª3¢ª4¢ª1¤Î¤è¤¦¤ËÆþ¤ìÂؤ¨¤ë¾ì¹ç¡¢Æþ¤ìÂؤ¨Êý¤Ï3¡ß2¡ß1¡á6Ä̤ê¤Ç¡¢»°¹ÔÌܤÏ2Ä̤ê¤Ê¤Î¤Ç6¡ß2¡á12Ä̤ꡣ
Á´Éô¤Ç24¡ß¡Ê12+12¡Ë¡á576Ä̤ê¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
ºÇ½é¸«¤¿¤È¤­¤ÏÆñ¤·¤½¤¦¤Êµ¤¤¬¤·¤Þ¤·¤¿¤¬¡¢Æó¹ÔÌܤÎÆþ¤ìÂؤ¨¤Î¾ì¹çʬ¤±¤ò¹©Éפ·¤Æ¤ß¤¿¤é¤¦¤Þ¤¯¤¤¤­¤Þ¤·¤¿¡£
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 0:14:23¡¡¡¡ ¡¡¡¡50027
¥´¥ó¤È¤â
½½¿ÊBaisc ¤Ç

abcd
efgh
ijkl

¤È¥¢¥ë¥Õ¥¡¤Ù¥Ã¥È¤ò¿¶¤ê

for a=1 to 4
for b=1 to 4
for c=1 to 4
for d=1 to 4
if a+b+c+d<>10 or a*b*c*d<>24 then goto 90
for e=1 to 4
if e=a then goto 80
for f=1 to 4
if f=b then goto 70
for g=1 to 4
if g=c then goto 60
for h=1 to 4
if h=d then goto 50
if e+f+g+h<>10 or e*f*g*h<>24 then goto 50
for i=1 to 4
if i=a or i=e then goto 40
for j=1 to 4
if j=b or j=f then goto 30
for k=1 to 4
if k=c or k=g then goto 20
for l=1 to 4
if l=d or l=h then goto 10
if i+j+k+l<>10 or i*j*k*l<>24 then goto 10
let s=s+1
10 next l
20 next k
30 next j
40 next i
50 next h
60 next g
70 next f
80 next e
90 next d
100 next c
110 next b
120 next a
print s
end

f9 ²¡¤·¤Æ¡¡576¡¦¡¦¡¦¡¦¡¦¡¦(Åú¤¨)
Ë­Àî»Ô¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 0:18:45¡¡¡¡ MAIL:fttnm528@ybb.ne.jp ¡¡¡¡50028
¤¤¤Á¤´¤ß¤ë¤¯
1234
2???
3???
¤Þ¤Ç¸ÇÄꤷ¤Æ¤·¤Þ¤Ã¤Æ¸å¤Ç144Çܤ¹¤ì¤Ð¤¤¤¤¤Î¤Ç
144*4¤¬Åú¤¨
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 0:31:04¡¡¡¡ ¡¡¡¡50029
¥´¥ó¤È¤â
#50028

´Ö°ã¤Ã¤Æ¤Ê¤¤¤«Á´»ö¾Ý¤òÄ̤·ÈÖ¹æ¤ò¿¶¤ë¥×¥í¥°¥é¥à¤ËÊѤ¨¤Æ

for a=1 to 4
for b=1 to 4
for c=1 to 4
for d=1 to 4
if a+b+c+d<>10 or a*b*c*d<>24 then goto 90
for e=1 to 4
if e=a then goto 80
for f=1 to 4
if f=b then goto 70
for g=1 to 4
if g=c then goto 60
for h=1 to 4
if h=d then goto 50
if e+f+g+h<>10 or e*f*g*h<>24 then goto 50
for i=1 to 4
if i=a or i=e then goto 40
for j=1 to 4
if j=b or j=f then goto 30
for k=1 to 4
if k=c or k=g then goto 20
for l=1 to 4
if l=d or l=h then goto 10
if i+j+k+l<>10 or i*j*k*l<>24 then goto 10
LET s=s+1
PRINT "No.";s
PRINT a;b;c;d
PRINT e;f;g;h
PRINT i;j;k;l
10 next l
20 next k
30 next j
40 next i
50 next h
60 next g
70 next f
80 next e
90 next d
100 next c
110 next b
120 next a
end

f9²¡¤·¤Æ¡¡576ÍåÎó!!(ά)
Ë­Àî»Ô¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 0:36:45¡¡¡¡ MAIL:fttnm528@ybb.ne.jp ¡¡¡¡50030
º£Ç¯¤«¤é¹âÎð¼Ô
¤â¤¦1¹ÔÁý¤ä¤¹
¤³¤ÎÁý¤ä¤·¤¿¹Ô¤Ï°ìµÁŪ¤Ë·è¤Þ¤ë¡£
£±£²£³£´
£²£³£´£±
£²£³£±£²
£´£±£²£³
¤¬²ò¡£
¹Ô¤òʤ٤«¤¨¤ë¡²£´¡ª
Îó¤òʤ٤«¤¨¤ë¡²£´¡ª
1¹Ô¤ò¾Ã¤¹¡£
£´¡ª*£´¡ª¡á576
¤³¤ó¤Ê²ò¤­Êý¤Ç¤âÎɤ¤¤Î¤«¤Ê¡ª
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 1:09:46¡¡¡¡ ¡¡¡¡50031
º£Ç¯¤«¤é¹âÎð¼Ô
#50031ÆþÎϥߥ¹
£±£²£³£´
£²£³£´£±
£³£´£±£²
£´£±£²£³
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 1:11:22¡¡¡¡ ¡¡¡¡50032
º£Ç¯¤«¤é¹âÎð¼Ô
#50031ÆþÎϥߥ¹
£±£²£³£´
£²£³£´£±
£³£´£±£²
£´£±£²£³
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 1:54:46¡¡¡¡ ¡¡¡¡50033
º£Ç¯¤«¤é¹âÎð¼Ô
#50031¤Î¹Í¤¨Êý¤Ï´Ö°ã¤¤¤Ç¤¹¡£
¤ªÏͤӡ§´Ö°ã¤¨¤Æ¤¯¤À¤é¤Ê¤¤½ñ¤­¹þ¤ß¤¬¥À¥Ö¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿
Âè862²ó¤ÎÌäÂ꤬Á´¤¯Æ±¤¸¤Ç¤¹
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 1:58:20¡¡¡¡ ¡¡¡¡50034
º£Ç¯¤«¤é¹âÎð¼Ô
#50034Ϣ³ÆþÎϥߥ¹
Âè892²ó¤ÎÌäÂê¤Ç¤¹
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 2:00:11¡¡¡¡ ¡¡¡¡50035
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
1¹ÔÌܤϽçÎó¡¢2¹ÔÌܤÏÙøÍð½çÎó¤Î¿ô¤Ç¤¹¤¬¡¢
3¹ÔÌܤ¬1¹ÔÌܤËÂФ¹¤ë2¹ÔÌܤνÐÍèÊý¤Ç°ã¤Ã¤Æ¤­¤Æ¡¢
2¸Ä¤ÎÆþ¤ìÂؤï¤ê¤Ç¤Ç¤­¤¿¤¤¤ë¤Ê¤é4Ä̤ꡢ
¤½¤¦¤Ç¤Ê¤¤¤Ê¤é2Ä̤ê¤Ë¤Ê¤ë¤Î¤Ç¤¹¤Í¡£
´Êñ¤½¤¦¤Ç¤à¤Ä¤«¤·¤¤ÌäÂê¤À¤È»×¤¤¤Þ¤·¤¿¡£
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 7:24:04¡¡¡¡ ¡¡¡¡50036
¥¹¥â¡¼¥¯¥Þ¥ó
Ä«¹Í¤¨¤¿¤éµ¤¤Å¤±¤Þ¤·¤¿ ^^;v
Èï¤Ã¤Æ¤ë¤«¤â...Orz

4x4¤Ç...
½Ä¤Ç¹Í¤¨...
4!*3*2*2=288
3Îó¤Ç¤¤¤¤¤Î¤Ç...
288*2=576
¢ö
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 8:14:58¡¡¡¡ ¡¡¡¡50037
¥¹¥â¡¼¥¯¥Þ¥ó
3¹Ô¤Ç¤¤¤¤¤Î¤Ç...¤Ç¤·¤¿...
¢­
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 8:17:42¡¡¡¡ ¡¡¡¡50038
¼¡ÏºÄ¹
º£Æü¤Ï¤ªµÙ¤ß¡£ÄíÁݽü¤ÎÁ°¤Ë¤Á¤ç¤Ã¤ÈÇÁ¤¤¤Æ¤ß¤è¤¦¤È¥Á¥ã¥ì¥ó¥¸¡£
¹Í¤¨¤ëÁ°¤Ë¡¢º£Æü¤Î±¿»î¤·¡£°ìȯ¤ÇÆþ¤Ã¤Æ¤·¤Þ¤Ã¤¿¡£
ž¤Ð¤Ê¤¤¤è¤¦¤Ëµ¤¤ò¤Ä¤±¤è¤¦
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 10:23:30¡¡¡¡ ¡¡¡¡50039
J¥Þ¥Þ
ÍËÆü¤ò´ª°ã¤¤(^o^;)
4¹Ô¤Ë¤·¤Æ°ìÈÖ²¼¤ò¼è¤Ã¤Æ¤âƱ¤¸¤Ê¤Î¤Ç
1¤«¤é½ç¤Ë¡¢¹Ô¡¢Î󤫤é°ì¤Ä¤º¤ÄÁª¤ó¤Ç¤¤¤¯¤È¹Í¤¨
4!¡ß4!=576Ä̤ê
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 10:26:51¡¡¡¡ ¡¡¡¡50040
¤Þ¤ë¥±¥ó
#50029 ¤¤¤Á¤´¤ß¤ë¤¯¤µ¤ó¤ÈƱ¤¸¹¶¤áÊý¤Ç¤·¤¿¡£

¸¡»»¤Î°ÕÌ£¤Ç¥ï¥ó¥é¥¤¥Ê¡¼
Ruby ¤Ç¤¹¡£

p [1,2,3,4].permutation(4).to_a.permutation(3).to_a.map{|a|[0,1,2,3].map{|i|a.transpose[i].uniq.size==3?1:0}.sum==4?1:0}.sum
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 11:04:10¡¡¡¡ ¡¡¡¡50041
¥´¥ó¤È¤â
#50034
>Âè862²ó¤ÎÌäÂ꤬Á´¤¯Æ±¤¸¤Ç¤¹

¤½¤ì¤Ïµ¤ÉÕ¤«¤Ã¤¿¤ó¤Ç²áµî¥ì¥¹¤ò¸«¤ë¤È

#41981
>¥´¥ó¤È¤â¤µ¤ó¤Î¥×¥í¥°¥é¥à¤ò¼ÚÍÑ¡¦½¤Àµ¤·¤Æ¡¢
>1¡Á3¤Î2¡ß3¥Þ¥¹¤ä1¡Á4¤Î2¡ß4¥Þ¥¹¤ò»î¤·¤Æ¤ß¤Þ¤·¤¿¤¬¹ç¤¤¤Þ¤»¤ó¡£
>1¡Á3¤Î2¡ß3¥Þ¥¹¤Ç£±£²¤È¤ª¤ê¡¢1¡Á4¤Î2¡ß4¥Þ¥¹¤Ç216¤È¤ª¤ê¤È¤Ê¤ê¤Þ¤·¤¿¡£

½ñ¤­¹þ¤ß¤¬ºÇ¸å¤ÎÊý¤Ç¸«¤Æ¤Ê¤«¤Ã¤¿¤ß¤¿¤¤¤Ç¡¦¡¦¡¦

#41983
¤Î¥×¥í¥°¥é¥à¤ÈƱÍͤÇÁ´»ö¾Ý¤òÍåÎó¤·¤Æ
12,216¤Ë¤Ê¤ë¤â¤Î¤ò½ñ¤­¤Þ¤·¤¿!!

(a)(b)(c)
(d)(e)(f)

for a=1 to 3
for b=1 to 3
for c=1 to 3
if a+b+c<>6 or a*b*c<>6 then goto 40
for d=1 to 3
if a=d then goto 30
for e=1 to 3
if e=b then goto 20
for f=1 to 3
if f=c then goto 10
if d+e+f<>6 or d*e*f<>6 then goto 10
let s=s+1
print "No.";s
print a;b;c
print d;e;f
10 next f
20 next e
30 next d
40 next c
50 next b
60 next a
print s;"Ä̤ꡦ¡¦¡¦¡¦¡¦¡¦(Åú¤¨)"
end

(a)(b)(c)(d)
(e)(f)(g)(h)

for a=1 to 4
for b=1 to 4
for c=1 to 4
for d=1 to 4
if a+b+c+d<>10 or a*b*c*d<>24 then goto 50
for e=1 to 4
if e=a then goto 40
for f=1 to 4
if f=b then goto 30
for g=1 to 4
if g=c then goto 20
for h=1 to 4
if h=d then goto 10
if e+f+g+h<>10 or e*f*g*h<>24 then goto 10
let s=s+1
print "No.";s
print a;b;c;d
print e;f;g;h
10 next h
20 next g
30 next f
40 next e
50 next d
60 next c
70 next b
80 next a
print s;"Ä̤ꡦ¡¦¡¦¡¦¡¦¡¦(Åú¤¨)"
end
Ë­Àî»Ô¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 11:33:23¡¡¡¡ MAIL:fttnm528@ybb.ne.jp ¡¡¡¡50042
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§
892²ó¤ÈƱ¤¸¤À¤Ã¤¿¤ó¤Ç¤¹¤Í¡£
Á°²ó¼«Ê¬¤¬¶ìÀ路¤Æ¤¤¤¿¤é¤·¤¤²áµî¥í¥°¤ò¸«¤Æ¡¢¾¯¤·¤ÏÀ®Ä¹¤·¤¿¤«¤Ê¤È»×¤¤¤Þ¤·¤¿¡£
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 11:56:04¡¡¡¡ ¡¡¡¡50043
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§
#50024
¤ä¤Ï¤êÈæ¤Çµá¤Þ¤ë¤ó¤Ç¤¹¤Í¡£
¤¢¤È¤Ç¤æ¤Ã¤¯¤êÆɤó¤Ç¤ß¤Þ¤¹¡£
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 12:18:26¡¡¡¡ ¡¡¡¡50044
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
»ä¤â£Ò£õ£â£ù¤Ç¤·¤Æ¤ß¤Þ¤·¤¿¡£¤¤¤Þ·Ç¼¨ÈĤò¸«¤ë¤È¡¢
#50031¡¡¤Þ¤ë¥±¥ó¡¡ÍͤȤۤÜƱ¤¸¹Í¤¨Êý¤Ç¤¹¡£

p [1,2,3,4].permutation.to_a.permutation(3).to_a.delete_if{|j| j.transpose.map{|i|i.uniq.size}.count(3)<4}.size

¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 13:36:51¡¡¡¡ ¡¡¡¡50045
¤Ë¤³¤¿¤ó
°ìÈÖ¾å¤ò¸ÇÄꤷ¤ÆÄ´¤Ù¤Þ¤·¤¿¡£¡£¡£
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 15:41:57¡¡¡¡ ¡¡¡¡50046
J¥Þ¥Þ
#50040¤Ç¤¹¤¬¡¢¹Í¤¨Ä¾¤¹¤ÈºÆ¸½À­(3¡ß3,2¡ß2¤Î¤È¤­¤Ê¤É)¤¬Ìµ¤¤¤è¤¦¤Ë»×¤¦¤Î¤Ç¡¢
¤¿¤À¤Î¤Þ¤°¤ìÅö¤¿¤ê¤À¤Ã¤¿¤«¤âÃΤì¤Þ¤»¤ó(¡¦.¡¦;)
¤¹¤ß¤Þ¤»¤ó¡Ä
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 16:30:00¡¡¡¡ ¡¡¡¡50047
M
python¤ÇÁíÅö¤¿¤ê¤·¤Þ¤·¤¿

import itertools

a = [1,2,3,4]
b = [1,2,3,4]
c = [1,2,3,4]

A = list(itertools.permutations(a))
B = list(itertools.permutations(b))
C = list(itertools.permutations(c))
s=0

for x in A:
for y in B:
for z in C:
if x[0] != y[0] and y[0] != z[0] and x[0] != z[0]:
if x[1] != y[1] and y[1] != z[1] and x[1] != z[1]:
if x[2] != y[2] and y[2] != z[2] and x[2] != z[2]:
if x[3] != y[3] and y[3] != z[3] and x[3] != z[3]:
s += 1
print(s)
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 19:04:56¡¡¡¡ ¡¡¡¡50048
M
https://colab.research.google.com/gist/naritatsu/9f36139b1303cc40338c29ba8bb36e27/math_challenge_1158.ipynb?hl=ja#scrollTo=rbWATs6kSmrM
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 19:05:06¡¡¡¡ ¡¡¡¡50049
¤Ð¤Á´Ý
¤³¤ì¤Ï2020ǯµþÅÔÂç³ØÍý·Ï5ÈÖ¤ÈÁ´¤¯Æ±¤¸¡©
https://www.densu.jp/kyoto/20kyotospass.pdf
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 20:26:08¡¡¡¡ MAIL:hbmath1965@yahoo.co.jp ¡¡¡¡50050
¥´¥ó¤È¤â
#42007

>wxMaxima ¤Ç¡¢£±¤«¤é£µ¤Î¾ì¹ç¤ò¥×¥í¥°¥é¥à¤·¤Æ¤ß¤Þ¤·¤¿¡£¡Ê°Ê²¼¤ÎÄ̤ê¡Ë
>¼Â¹Ô·ë²Ì¡¢£³£±£¶¡¥£µÉäÇÅú¤¨¤¬½Ð¤Þ¤·¤¿¡£

2014ǯ¤À¤«¤é6ǯÁ°¤Ç¤¹¤«?!¼«Ê¬¤â¤ä¤Ã¤Æ¤ß¤Þ¤·¤¿!!
½½¿ÊBasic ¤Ç

(a)(b)(c)(d)(e)
(f)(g)(h)(i)(j)
(k)(l)(m)(n)(o)
(p)(q)(r)(s)(t) ¤ÈÊÑ¿ô¤ò¿¶¤ê°Ê²¼¤Î¥³¡¼¥É¤Ç

print time$
for a=1 to 5
for b=1 to 5
for c=1 to 5
for d=1 to 5
for e=1 to 5
if a+b+c+d+e<>15 or a*b*c*d*e<>120 then goto 160
for f=1 to 5
if f=a then goto 150
for g=1 to 5
if g=b then goto 140
for h=1 to 5
if h=c then goto 130
for i=1 to 5
if i=d then goto 120
for j=1 to 5
if j=e then goto 110
if f+g+h+i+j<>15 or f*g*h*i*j<>120 then goto 110
for k=1 to 5
if k=a or k=f then goto 100
for l=1 to 5
if l=b or l=g then goto 90
for m=1 to 5
if m=c or m=h then goto 80
for n=1 to 5
if n=d or n=i then goto 70
for o=1 to 5
if o=e or o=j then goto 60
if k+l+m+n+o<>15 or k*l*m*n*o<>120 then goto 60
for p=1 to 5
if p=a or p=f or p=k then goto 50
for q=1 to 5
if q=b or q=g or q=l then goto 40
for r=1 to 5
if r=c or r=h or r=m then goto 30
for s=1 to 5
if s=d or s=i or s=n then goto 20
for t=1 to 5
if t=e or t=j or t=o then goto 10
if p+q+r+s+t<>15 or p*q*r*s*t<>120 then goto 10
let s1=s1+1
10 next t
20 next s
30 next r
40 next q
50 next p
60 next o
70 next n
80 next m
90 next l
100 next k
110 next j
120 next i
130 next h
140 next g
150 next f
160 next e
170 next d
180 next c
190 next b
200 next a
print s1
print time$
end

20:38:04
161280
20:38:11

¤Ç7ÉäǤ·¤¿!!

>¤·¤«¤·¡¢£±¤«¤é£¶¤Î¾ì¹ç¤ò·×»»¤¹¤ë¤Ë¤Ï¡¢¤â¤Ã¤È¹©Éפ·¤Ê¤¤¤È¡¦¡¦¡¦
>¿ôÉ´»þ´Ö¤â¤«¤«¤ê¤½¤¦¤Ç¤¹¡Ê¡°¡°¡¨¡¨

º£¤«¤é¤ä¤í¤¦¤È»×¤¤¤Þ¤¹!!
¤±¤É¿ôÉ´»þ´Ö¤â¤«¤«¤ë¤Î¤Ê¤é¤Ç¤­¤Þ¤»¤ó¤è¤Í¡Á²¿Æü¤â¡£
Ë­Àî»Ô¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 20:50:15¡¡¡¡ MAIL:fttnm528@ybb.ne.jp ¡¡¡¡50051
¥¯¥é¥²
µþÂçÆþ»î¤ÈƱ¤¸ÌäÂê¤Ç¤¹¤Í
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 21:07:24¡¡¡¡ ¡¡¡¡50052
¤À¤¤¤¹¤±¡¡¡÷¥«¥ì¡¼¹¥¤­
º£½µ¤Ï»Å»ö¤¬Ë»¤·¤¯¤Æ¥ê¥¢¥ë¥¿¥¤¥à¤Ç»²²Ã¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£µã
º£Ç¯¤ÎµþÂç¤Ç¤¹¤Í¡£
¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 21:22:26¡¡¡¡ ¡¡¡¡50053
¤Ë¤ã¤â¡¼·¯¡Ê¡ä¦Ø¡ã¡Ë¥Î¥·
ºòǯ¤ÎµþÂç¤ÎÌäÂ꤫¤é£±¹Ôºï¤Ã¤¿¤â¤Î¤Ç¤¹¤Í¡£
º¸£±Îó¤ÎʤÙÊý¤¬£´¡ß£¶¡á£²£´¡Ä­¡
£±ÎóÌܤᦣ³¤Ä¤ÎʤÙÊý¤¬£¶Ä̤ê¡Ä­¢
£²ÎóÌܤᦣ³¤Ä¤ÎʤÙÊý¤¬£³¥Ñ¥¿¡¼¥ó¤¢¤Ã¤Æ¡¢¤½¤ì¤¾¤ì¤Ë¤Î¥Ñ¥¿¡¼¥ó¤Ç
£³¹ÔÌܤᦣ³¤Ä¤ÎʤÙÊý¤¬£±¡Ü£±¡Ü£²¤Î¡¢£´Ä̤ê¡Ä­£
£²£´¡ß£¶¡ß£´¡á£µ£·£¶

º£²ó¤Î´ØÀ¾Ãæ³ØÆþ»î¤Î»»¿ô¡¡Æñ°×ÅÙ¤À¤±¸«¤¿¤éÅìÂç»û¡äÆç
ÅìÂç»û¤ÎÂçÌ䣳¡¦Ê¿ÌÌ¿Þ·ÁÌäÂê¤Ï»»¥Á¥ã¥ì¤Ç½Ð¤Æ¤â¤ª¤«¤·¤¯¤Ê¤¤Æñ¤·¤µ¤È´¶¤¸¤Þ¤·¤¿¡£
±ºÏ¡¡¡¡ 1·î21Æü¡ÊÌÚ¡Ë 21:41:57¡¡¡¡ ¡¡¡¡50054
Shim Koba
¤Ë¤ã¡¼¤â·¯¤µ¤ó¤ËƱ¤¸¤¯¡£
1ÎóÌÜ24¤È¡¼¤ê¡¢12¡¢21¡¢34¡¢43¤ÎµÕ¤µ¥»¥Ã¥È¤Î·Á¤¬¡¢1&2¡¢1&3¡¢1&4¤Î3Ä̤ꡢµÕ¥»¥Ã¥È°Ê³°¤¬6¤È¡¼¤ê¡£
µÕ¥»¥Ã¥È¤Ï3ÎóÌܤ¬2¡ß2¡á4¤È¡¼¤ê¤º¤Ä¡£
¤½¤ì°Ê³°¤Ï¥«¥¯¥é¥ó½çÎ󤫤é2¤È¡¼¤ê¡£
¤è¤Ã¤Æ24¡ß3¡ß4¡á288 24¡ß6¡ß2¡á288 288+288¡á576 ¤Ç¡¡576¤È¡¼¥ê
¡¡¡¡ 1·î22Æü¡Ê¶â¡Ë 4:05:55¡¡¡¡ ¡¡¡¡50055
¤¤¤Á¤´¤ß¤ë¤¯
¹¹¤Ë¤â¤¦°ì¹ÔƱ¤¸¥ë¡¼¥ë¤Ç²Ã¤¨¤Æ¤âÌäÂê¤Ê¤¤¤³¤È¤¬
´Êñ¤Ë¤Ë¼¨¤»¤ë¤Î¤Ç
1234
2???
3???
4???¤«¤é»Ï¤á¤ë¤È

1234
2?4?
342?
4??2

1234
2?4?
34?2
4?2?

1234
24??
3?42
4?2?
¤Î¥±¡¼¥¹¤·¤«¤¢¤ê¤¨¤Ê¤¤¤Î¤¹¤°¤ï¤«¤ë¤Î¤Ç
24*6*(1+2+1)¤È¤ä¤ë¤Î¤¬Áᤤµ¤¤¬¤·¤Þ¤¹
¡¡¡¡ 1·î22Æü¡Ê¶â¡Ë 18:23:47¡¡¡¡ ¡¡¡¡50056
¤¤¤Á¤´¤ß¤ë¤¯
6*6¤°¤é¤¤¤Ê¤é0.031sec¤Ç½ª¤ï¤ê¤Þ¤·¤¿¡£
7*7¤Ë75É䫤«¤ê¤Þ¤¹¤¬61479419904000¤ÈÀµ¤·¤¤Åú¤¨¤ò½Ð¤»¤Þ¤¹

#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep2(i,l,r)for(int i=(l);i<(r);++i)
#define endl "\n"

long long N, M, subM;
int memo[5040][7];
bool Check[7][7];
long long dfs(int d) {
if (d == (N - 2)) {
return 1;
}
long long ret = 0;
rep2(i, (d + 1)*subM, (d + 2)*subM) {
bool b = true;
rep(j, N) {
if (Check[j][memo[i][j]]) {
b = false;
}
}
if (b) {
rep(j, N) {
Check[j][memo[i][j]] = true;
}
ret += dfs(d + 1);
rep(j, N) {
Check[j][memo[i][j]] = false;
}
}
}
return ret;
}
int main() {
cin >> N;
M = 1;
vector<int> v;
rep(i, N) {
v.push_back(i);
M *= (i + 1);
}
subM = M / N;
int now = 0;
do {
rep(i, N) {
memo[now][i] = v[i];
}
now++;
} while (next_permutation(v.begin(), v.end()));

rep(i, N) {
Check[i][i] = true;
}
long long ans = M * subM;
ans *= dfs(0);
cout << ans << endl;

}
¡¡¡¡ 1·î22Æü¡Ê¶â¡Ë 19:15:56¡¡¡¡ ¡¡¡¡50057
¥´¥ó¤È¤â
#50051

>º£¤«¤é¤ä¤í¤¦¤È»×¤¤¤Þ¤¹!!
>¤±¤É¿ôÉ´»þ´Ö¤â¤«¤«¤ë¤Î¤Ê¤é¤Ç¤­¤Þ¤»¤ó¤è¤Í¡Á²¿Æü¤â¡£

6*5=30ÊÑ¿ô¤Ç¡¦¡¦¡¦1¤«¤é6¤Þ¤Ç
5*4=20ÊÑ¿ô¤Ç1¤«¤é5¤Þ¤Ç¤Ç7ÉäÀ¤Ã¤¿¤ó¤Ç¤¹¤¬¡¦¡¦¡¦

22:20:53
812851200
23:10:05

49ʬ12ÉᡤǤʤ¯¡¡72»þ´Ö49ʬ12ÉÃ

ÅÓÃæ¤Þ¤Ç°ã¤¦¥³¡¼¥É¤Ç·×3¥×¥í¥°¥é¥àÁö¤é¤»¤Æ(ÃÙ¤¯¤Ê¤ë¤Ê¤ë¤é¤·¤¤¤Ç¤¹)
²¿»þ´Ö¸å¤Ë2¸Ä¤ò¼Î¤Æ¤Æ¡¦¡¦¡¦
Ë­Àî»Ô¡¡¡¡ 1·î24Æü¡ÊÆü¡Ë 23:32:23¡¡¡¡ MAIL:fttnm528@ybb.ne.jp ¡¡¡¡50058
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
#50057¡¡#50058
»ä¤Î°ÊÁ°¤Î¡¡#50045¡¡¤ÎÁíÅö¤¿¤êÊý¼°¤Ç¤Ï¡¡n=6¡¡¤Î¾ì¹ç¡¢´Ý°ìÆü¤ä¤Ã¤Æ¤â½Ð¤Þ¤»¤ó¤Ç¤·¤¿¡£
·×»»Ãæ¤Ï¥Ñ¥½¥³¥ó¤ÎÆ°¤­¤¬¤¢¤Þ¤ê¤Ë¤âÆߤ¯¤Æ²æËý¤Ç¤­¤ºÃæÃǤ·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
¤½¤³¤Ç¡¢°ì¥Þ¥¹¤º¤Ä½çÈ֤˽IJ£¤ò¸«¤Ê¤¬¤éËä¤á¤Æ¤¤¤¯Êý¼°¤ËÊѹ¹¤·¤Æ¡¢¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤·¤¿¡£RubyºÆµ¢¤Ç¤¹¡£
n=5¤Ç¡¢0.15Éá¢n=6¤Ç¡¢79.81Éá¢n=7¤Ç¡¢¤¤¤Þ·×»»Ãæ¤Ç¤¹¡£·ë²Ì¤Ï¸å¤Û¤É¡£..

$n=7¡¡#¤³¤³¤òn=4,n=5,n=6,,,¤È¤¹¤ë¤À¤±¤Ç¤¤¤¤¤Ç¤¹¡£
$cn=0
a=Array.new()
$r=Array.new()
1.step($n){|i|a<<i}
$r<<a
2.step($n){|i|$r<<Array.new($n,0)}

def c(e,f)
if f==$n then e+=1;f=0
end
if e>=$n then $cn+=1
else
1.step($n){|s|
if !($r[e].include?(s) or $r.transpose[f].include?(s))
then $r[e][f]=s
c(e,f+1)
end
}
$r[e][f]=0
end
end
t1=Time.now
c(1,0);1.step($n){|i|$cn*=i};p $cn
t2=Time.now
p t2-t1

¡¡¡¡ 1·î25Æü¡Ê·î¡Ë 8:49:54¡¡¡¡ ¡¡¡¡50059
¹«¤ÎÌ´
ËÜÆü¡¢µ×Êý¤Ö¤ê¤Ë·Ç¼¨ÈĤòÇÁ¤¯¤È¡¢²¿¤È7ǯÁ°¤Ë¥Þ¥µ¥ëÍͤ¬½ÐÂꤷ¤¿
ÌäÂ꤬¡¢ºòǯ¤ÎµþÂçÆþ»î¤Ë½Ð¤Æ¤¤¤¿¤ÈÍý²ò¤·¤Þ¤·¤¿¡£
¤³¤ì¤Ã¤Æ¡¢ÁÇÀ²¤é¤·¤¤¤³¤È¤Ç¤¹¤¬¡¢¹ñΩÂç³Ø¤¬¡¦¡¦¡¦¡¦¡£
²¿¤«¸í²ò¤·¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡¦¡¦¡¦¡¦¡©
¿¿Çò¤­ÉٻΤÎÎæ¡¡¡¡ 1·î25Æü¡Ê·î¡Ë 19:01:01¡¡¡¡ ¡¡¡¡50060