¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§
Çò¤òÃÖ¤±¤ë¤Î¤Ï¹õ¤È¹õ¤Î´Ö¤ª¤è¤Óº¸Â¦¤Ë£±¸Ä¤Þ¤Ç¡£¤¢¤È¤Ï¤¹¤Ù¤Æ±¦¡£
7¤«½ê¤Ë0¸Ä¤Þ¤¿¤Ï1¸Ä¤Ê¤Î¤Ç2¤ò7¸Ä¤«¤±¤Æ128Ä̤ê¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 0:07:01¡¡¡¡ ¡¡¡¡50963
¥´¥ó¤È¤â
¹õÀФò1,ÇòÀФò0¤È¤·¤Æ10¿ÊBasic ¤Ç

for a=0 to 1
for b=0 to 1
for c=0 to 1
if a=0 and b=0 and c=1 then goto 150
for d=0 to 1
if b=0 and c=0 and d=1 then goto 140
for e=0 to 1
if c=0 and d=0 and e=1 then goto 130
for f=0 to 1
if d=0 and e=0 and f=1 then goto 120
for g=0 to 1
if e=0 and f=0 and g=1 then goto 110
for h=0 to 1
if f=0 and g=0 and h=1 then goto 100
for i=0 to 1
if g=0 and h=0 and i=1 then goto 90
for j=0 to 1
if h=0 and i=0 and j=1 then goto 80
for k=0 to 1
if i=0 and j=0 and k=1 then goto 70
for l=0 to 1
if j=0 and k=0 and l=1 then goto 60
for m=0 to 1
if k=0 and l=0 and m=1 then goto 50
for n=0 to 1
if l=0 and m=0 and n=1 then goto 40
for o=0 to 1
if m=0 and n=0 and o=1 then goto 30
for p=0 to 1
if n=0 and o=0 and p=1 then goto 20
for q=0 to 1
if o=0 and p=0 and q=1 then goto 10
if a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q=7 then let s=s+1
10 next q
20 next p
30 next o
40 next n
50 next m
60 next l
70 next k
80 next j
90 next i
100 next h
110 next g
120 next f
130 next e
140 next d
150 next c
160 next b
170 next a
print s
end

f9²¡¤·¤Æ¡¡128¡¦¡¦¡¦¡¦¡¦¡¦(Åú¤¨)
Ë­Àî»Ô¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 0:20:02¡¡¡¡ MAIL:fttnm528@ybb.ne.jp ¡¡¡¡50964
baLLjugglermoka
¡û¤Î¸Ä¿ô¤Ï10¤Ç¤Ê¤¯¤Æ¤â¡¢☓¤Î¸Ä¿ô°Ê¾å¤Ç¤·¤¿¤é¤¤¤¯¤Ä¤Î¾ì¹ç¤Ç¤âÅú¤¨¤ÏƱ¤¸¤Ë¤Ê¤ê¤Þ¤¹¤Í
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 0:33:33¡¡¡¡ ¡¡¡¡50965
baLLjugglermoka
¥Ð¥Ä¤¬Ê¸»ú²½¤±¤·¤Æ¤¤¤Þ¤¹¤Í¡£
¥Ð¥Ä¤Î¸Ä¿ô°Ê¾å¤Ç¤â
¤Ç¤¹¡£
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 0:34:43¡¡¡¡ ¡¡¡¡50966
º£Ç¯¤«¤é¹âÎð¼Ô
¡û1¸Ä
­¡¡²¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¢¡²¡ü¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
¡û2¸Ä
­¡­¡¡²¡û¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¡­¢¡²¡û¡ü¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¢­¡¡²¡ü¡û¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¢­¢¡²¡ü¡û¡ü¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
¡û3¸Ä
­¡­¡­¡¡²¡û¡û¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¡­¡­¢¡²¡û¡û¡ü¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¡­¢­¡¡²¡û¡ü¡û¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¡­¢­¢¡²¡û¡ü¡û¡ü¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¢­¡­¡¡²¡ü¡û¡û¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¢­¡­¢¡²¡ü¡û¡û¡ü¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¢­¢­¡¡²¡ü¡û¡ü¡û¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü¡ü
­¢­¢­¢¡²¡ü¡û¡ü¡û¡ü¡û¡ü¡ü¡ü¡ü¡ü¡ü¡ü
Á°¤Î¡û¤ÎÎÙ¤ËÆþ¤ì¤ë¾ì¹ç¤ò­¡¡¢Èô¤ó¤ÇÆþ¤ì¤ë¾ì¹ç¤ò­¢¤È¤¹¤ë¤È¡¢
­¡¤È­¢¤È¤¹¤Ù¤Æ¤ÎÁȤ߹ç¤ï¤»¡£¤³¤ì¤ò³¤±¤Æ
2^7=128

¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 0:37:08¡¡¡¡ ¡¡¡¡50967
»ç¤Îé¬é¯¤Î¿Í
½çÎó¤ÎËöÈø¤Ë¡¢¡»¤¬¤¤¤¯¤Äʤ֤«¤Ç¾ì¹çʬ¤±¤ò¤¹¤ë¡£
ËöÈø¤Î¡»¤ÎϢ³¤¬0¤Î¾ì¹ç¡¢0Ä̤ꡣ
¡Ê¡ü¤ò£·¸Äʤ٤¿±¦Ã¼°Ê³°¤Î·ä´Ö£·¤«½ê¤Ë10¸Ä¤Î¡»¤òÁÞÆþ¤¹¤ë¤³¤È¤ò¹Í¤¨¤ë¤È¡¢¡»¤ò2¸Ä°Ê¾åÆþ¤ì¤ë·ä´Ö¤¬1¤Ä°Ê¾å¤¬¤¢¤ê¡¢Âê°Õ¤òËþ¤¿¤µ¤Ê¤¤¡Ë
ËöÈø¤Î¡»¤ÎϢ³¤¬1¤Î¾ì¹ç¡¢0Ä̤ꡣ
¡Ê¡ü¤ò£·¸Äʤ٤¿±¦Ã¼°Ê³°¤Î·ä´Ö£·¤«½ê¤Ë9¸Ä¤Î¡»¤òÁÞÆþ¤¹¤ë¤³¤È¤ò¹Í¤¨¤ë¤È¡¢¡»¤ò2¸Ä°Ê¾åÆþ¤ì¤ë·ä´Ö¤¬1¤Ä°Ê¾å¤¬¤¢¤ê¡¢Âê°Õ¤òËþ¤¿¤µ¤Ê¤¤¡Ë
ËöÈø¤Î¡»¤ÎϢ³¤¬2¤Î¾ì¹ç¡¢0Ä̤ꡣ
¡Ê¡ü¤ò£·¸Äʤ٤¿±¦Ã¼°Ê³°¤Î·ä´Ö£·¤«½ê¤Ë8¸Ä¤Î¡»¤òÁÞÆþ¤¹¤ë¤³¤È¤ò¹Í¤¨¤ë¤È¡¢¡»¤ò2¸Ä°Ê¾åÆþ¤ì¤ë·ä´Ö¤¬1¤Ä°Ê¾å¤¬¤¢¤ê¡¢Âê°Õ¤òËþ¤¿¤µ¤Ê¤¤¡Ë
ËöÈø¤Î¡»¤ÎϢ³¤¬k¤Î¾ì¹ç¡¢(3¡åk¡å10)¡¡7C(10-k)Ä̤ꡢ
¡Ê¡ü¤ò£·¸Äʤ٤¿±¦Ã¼°Ê³°¤Î·ä´Ö£·¤«½ê¤Ë10-k¸Ä¤Î¡»¤òÁÞÆþ¤¹¤ë¤³¤È¤ò¹Í¤¨¤ë¡Ë

¤è¤Ã¤Æ¡¢µá¤á¤ë¾ì¹ç¤Î¿ô¤Ï¡¢7C7+7C6+¡¦¡¦¡¦¡¦¡Ü7C0¡á2^7¡á128Ä̤ꡣ
//
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 1:12:11¡¡¡¡ ¡¡¡¡50968
¤ß¤«¤ó
¡û¤¬£±£°¸Ä¡¢¡ß¤¬£·¸Ä¡¡¤È¤·¤Æ¹Í¤¨¤ë¡£

¡ß¤ÎϢ³¤ò²¿¤«½ê¤Ëʬ¤±¤ÆÆþ¤ì¤ë¤«¡¢¤Ç¾ì¹çʬ¤±¡£
²¿¤«½ê¤Î¾ì¹ç¤Ç¤â¡¢Á´ÂΤ¬¡û¤Ç»Ï¤Þ¤ë¡¦¡ß¤Ç»Ï¤Þ¤ë¡¡¤Î£²Ä̤꤬¤¢¤ë¡£

¡Ê£±¡Ë¡ß¤¬£±¤«½ê¤Î¡©¤Ë¤¹¤Ù¤ÆÆþ¤ë
¡û¡©¡û¡û¡û¡û¡û¡û¡û¡û¡û¡¡¤«¡¡¡©¡û¡û¡û¡û¡û¡û¡û¡û¡û¡û¡¡¤Î£²Ä̤ê¡Ä¡Ê¤¢¡Ë

¡Ê£²¡Ë¡ß¤¬£²¤«½ê¤Î¡©¤Ëʬ¤±¤ÆÆþ¤ë
¡û¡©¡û¡©¡û¡û¡û¡û¡û¡û¡û¡û¡¡¤«¡¡¡©¡û¡©¡û¡û¡û¡û¡û¡û¡û¡û¡û¡¡¤Î£²Ä̤ꤢ¤ê¡¢
¡ß¤Îʬ¤±Êý¤Ï¡¡£¶¡ª¡à£µ¡ª¡á£¶¡¡¢«½ÅÊ£ÁȤ߹ç¤ï¤»¤Î¹Í¤¨Êý¤ò»È¤¦
¤è¤Ã¤Æ£²¡ß£¶¡á£±£²Ä̤ê¡Ä¡Ê¤¤¡Ë

¡Ê£³¡Ë¡ß¤¬£³¤«½ê¤Î¡©¤Ëʬ¤±¤ÆÆþ¤ë
¡û¡©¡û¡©¡û¡©¡û¡û¡û¡û¡û¡û¡û¡¡¤«¡¡¡©¡û¡©¡û¡©¡û¡û¡û¡û¡û¡û¡û¡û¡¡¤Î£²Ä̤ꤢ¤ê¡¢
¡ß¤Îʬ¤±Êý¤Ï¡¡£¶¡ª¡à¡Ê£´¡ª¡ß£²¡ª¡Ë¡á£±£µ
¤è¤Ã¤Æ£²¡ß£±£µ¡á£³£°Ä̤ê¡Ä¡Ê¤¦¡Ë

°Ê¹ß¤âƱÍͤË
¡Ê£´¡Ë¡ß¤¬£´¤«½ê¤Î¡©¤Ëʬ¤±¤ÆÆþ¤ë¡¡£²¡ß£²£°¡á£´£°Ä̤ê¡Ä¡Ê¤¨¡Ë
¡Ê£µ¡Ë¡ß¤¬£µ¤«½ê¤Î¡©¤Ëʬ¤±¤ÆÆþ¤ë¡¡£²¡ß£±£µ¡á£³£°Ä̤ê¡Ä¡Ê¤ª¡Ë
¡Ê£¶¡Ë¡ß¤¬£¶¤«½ê¤Î¡©¤Ëʬ¤±¤ÆÆþ¤ë¡¡£²¡ß£¶¡á£±£²Ä̤ê¡Ä¡Ê¤«¡Ë
¡Ê£·¡Ë¡ß¤¬£·¤«½ê¤Î¡©¤Ëʬ¤±¤ÆÆþ¤ë¡¡£²Ä̤ê¡Ä¡Ê¤­¡Ë

¡Ê¤¢¡Ë¡Á¡Ê¤­¡Ë¤Î¹ç·×¤Ï
£²¡Ü£±£²¡Ü£³£°¡Ü£´£°¡Ü£³£°¡Ü£±£²¡Ü£²¡á£±£²£¸Ä̤ê¡ÄÅú¤¨
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 2:27:23¡¡¡¡ ¡¡¡¡50969
¹«¤ÎÌ´
#50963
µÕ¤Ë¡û¤ò10¸Äʤ١¢º¸Ã¼¤ËÃÖ¤±¤ë¡ü¤Î¸Ä¿ô¤ò7¸Ä¤«¤é£±¸Ä¤Þ¤ÇÊѲ½¤µ¤»¤ë¤È¡¢
64¤È¤Ê¤ë¡£Æ±Íͤʺî¶È¤ò·«¤êÊÖ¤·¤Ç¤­¤ë¤Î¤Ï¡¢º¸Ã¼¤«¤éʤ٤¿¢þ¢þ¤Î´Ö
¤·¤«¤Ê¤¤¡£°ø¤Ã¤Æ¡¢64¡ß2=128
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 7:54:12¡¡¡¡ ¡¡¡¡50970
Mr.¥À¥ó¥Ç¥£
[ ]¡ü[ ]¡ü[ ]¡ü[ ]¡ü[ ]¡ü[ ]¡ü[ ]¡ü¡Ú¡¡¡Û
7¸Ä¤Î¡ü¤òʤ٤½¤ì¤é¤Îº¸¤Î7¥«½ê¤Î[ ]¤Î²¿¥«½ê¤«¤Ë¡û¤ò£±¤Ä¤º¤ÄÁÞÆþ¤·¡¢»Ä¤Ã¤¿¡û¤ò¸Ç¤á¤Æ¡Ú¡Û¤Ëʤ٤ì¤Ð¤è¤¯
³Æ[ ]¤Ë¡û¤¬Æþ¤ë¤«Æþ¤é¤Ê¤¤¤«¤Î£²Ä̤ꤺ¤Ä¤¢¤ë¤«¤é¡¡2¡°7¡á128¡ÊÄ̤ê¡Ë
¤ÈÀ¡¤Þ¤·¤¿¡£¡Ê¤³¤¦¤¹¤ì¤Ð¾ì¹çʬ¤±¤ÏÉÔÍפǤ¹¤Í¡Ë
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 10:01:09¡¡¡¡ ¡¡¡¡50971
koh
{7!/0!(7-0)!+7!/1!(7-1)!+7!/2!(7-2)!+7!/3!(7-3)!}¡ß2¤È·×»»¤·¤Þ¤·¤¿¡£
¤Á¤ç¤Ã¤ÈÊ£»¨¤Ë¹Í¤¨¤¹¤®¤Æ¤·¤Þ¤Ã¤¿¤«¤Ê¡©
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 10:14:24¡¡¡¡ ¡¡¡¡50972
¼¡ÏºÄ¹
º£Ç¯¤«¤é¹âÎð¼ÔÍͤÈÁ´¤¯Æ±Íͤ˲ò¤­¤Þ¤·¤¿¡£
¤¿¤À¤·¡¢»ä¤Ï¡»¤È¡ß
Çطʤ¬¹õ¥Ù¥¿¤Î¾å¤Î¡»¤È¡ü¤Ï¡¢¤¤¤Ä¤â¤É¤Á¤é¤¬¹õ¤Ç¤É¤Á¤é¤¬Çò¤«Ê¬¤«¤é¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
°ø¤ß¤Ëº£Æü¤Ï»ä¤ÎÃÂÀ¸Æü¡£¥¤¥ó¥Õ¥ë¥¨¥ó¥¶Í½ËÉÃí¼Í¤ò¤·¤Þ¤·¤¿¡£
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 11:59:09¡¡¡¡ ¡¡¡¡50973
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
(1+1)¢Ê7¤Ç¤¹¤Í¡£
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 12:40:41¡¡¡¡ ¡¡¡¡50974
¥¹¥â¡¼¥¯¥Þ¥ó
¤Ê¤¼¤«·Ç¼¨ÈĤËÆþ¤ì¤º´Ö°ã¤Ã¤Æ¤ë¤Î¤«¤È»×¤Ã¤Æ¤Þ¤·¤¿...^^;
¹õ7¸Ä¤Î´Ö¤Èº¸Ã¼¤Î7²Õ½ê¤ËÇò1¸Ä¤¬Æþ¤ë¤«Æþ¤é¤Ê¤¤¤«¤ÇÎɤ«¤Ã¤¿¤ï¤±¤Ç¤¹¤Í ^^
so...2^7=128
¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 13:10:46¡¡¡¡ ¡¡¡¡50975
¹«¤ÎÌ´
#50971
Mr.¥À¥ó¥Ç¥£ÍͤΤª¤Ã¤·¤ã¤ëÄ̤ê¤Ç¡¢¤³¤ì¤Ê¤é¾ì¹çʬ¤±ÉÔÍפǤ¹¤Í¡£
Èᤷ¤¤¤«¤Ê¡¢¤³¤Î¹Í¤¨Êý¤Ë»ê¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£
¿¿Çò¤­ÉٻΤÎÎæ¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 16:26:13¡¡¡¡ ¡¡¡¡50976
¤³¤È¤ê¤Á¤å¤ó(¡¦8¡¦)
¤Þ¤º¡»¤ò£·¤Äʤ١¢¤½¤Î´Ö¤ÎÃæ¤Ë¡ü¤¬¤¤¤¯¤ÄÆþ¤ë¤«¤ò¹Í¤¨¤ë¡£
¡ß¡»¡ß¡»¡ß¡»¡ß¡»¡ß¡»¡ß¡»¡ß¡»¡ü¡ü¡ü¡¦¡¦¡¦¡¡¡ß¤ÎÃæ¤Ø¤Î¡ü¤ÎÆþ¤êÊý¤ò¹Í¤¨¤ë¡£
£·¤Ä¤½¤ì¤¾¤ì¤Î¡ß¤Ë¤Ä¤¤¤Æ
¡ü¤¬¡ÖÆþ¤ë¡×¡ÖÆþ¤é¤Ê¤¤¡×¤À¤«¤é
2¡°7=128Ä̤ꡣ
ºë¶Ì¸©¤µ¤¤¤¿¤Þ»Ô¡¡¡¡ 10·î28Æü¡ÊÌÚ¡Ë 21:28:58¡¡¡¡ ¡¡¡¡50977
¤Þ¤ë¥±¥ó
ÌäÂêʸ¡¢Àä̯¤Ç¤¹¡ª¡ª

¤â¤·ÌäÂêʸ¤¬Çò¹õµÕ¤Ç¡¢

¡Ö¹õ¤¤¸ëÀСʡû¡Ë¤¬£·¸Ä¡¢Çò¤¤¸ëÀСʡü¡Ë¤¬£±£°¸Ä¤¢¤ê¡¢¤³¤ì¤ò²£°ìÎó¤Ëʤ٤뤳¤È¤ò¹Í¤¨¤Þ¤¹¡£
¡¡¤³¤Î¤È¤­¡¢¡û¡ü¡ü ¤È¤¤¤¦Éôʬ¤¬£±¥ö½ê¤â¤Ê¤¤¤è¤¦¤ÊʤÙÊý¤Ï¡¢²¿Ä̤ꤢ¤ë¤Ç¤·¤ç¤¦¤«¡£¡×

¤Ã¤Æ¤¤¤¦ÌäÂê¤À¤Ã¤¿¤é¡¢¤â¤Ã¤È´Êñ¤ËÅú¤¨¤Ë¤¿¤É¤êÃ失¤¿µ¤¤¬¤·¤Þ¤¹¡£
¸í²ò¤¬À¸¤Þ¤ì¤ë¤è¤¦¤Êʸ¾Ï¤â¤À¤á¤À¤·¡¢´Êñ¤¹¤®¤ëɽ¸½¤â¤À¤á¡£
ÌäÂêʸºî¤ë¦¤â¡¢Æɤó¤Ç²ò¤¯Â¦¤Ë¤È¤Ã¤Æ¤â¡¢»»¿ô¤Ë¤È¤Ã¤Æ¹ñ¸ì¤Ã¤Æ¡¢¼Â¤Ï¤È¤Ã¤Æ¤âÂç»ö¤Ê¤ó¤À¤Ê¤Ã¤Æ»×¤¤¤Þ¤·¤¿¡£
¡¡¡¡ 10·î29Æü¡Ê¶â¡Ë 11:14:26¡¡¡¡ ¡¡¡¡50978
¤Þ¤ë¥±¥ó
º£¹¹¤Ç¤¹¤¬¡¢Àè½µ¤Î½ñ¤­¹þ¤ß¤Î #50961 ¤Î¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤Æ¡¢¡¢¡¢

python ¤Æ¡¢¥¤¥ó¥Ç¥ó¥È¤ËÂ礭¤Ê°ÕÌ£¤¬¤¢¤ê¤Þ¤¹¡£
·Ç¼¨ÈĤˤ½¤Î¤Þ¤Þ½ñ¤­¹þ¤à¤È¡¢¥¤¥ó¥Ç¥ó¥È¤¬¤Ê¤¯¤Ê¤Ã¤Á¤ã¤Ã¤Æ¡¢
¥ë¡¼¥×¤äifʸ¤Î¥Ö¥í¥Ã¥¯ÈϰϤ¬¤ï¤«¤é¤Ê¤¯¤Ê¤Ã¤Á¤ã¤¤¤Þ¤¹¡£

¿ä¬¤Ç¥¤¥ó¥Ç¥ó¥È¤òÁ´³Ñ¥¹¥Ú¡¼¥¹¤ÇÃÖ¤­´¹¤¨¤Æ¤ß¤Þ¤·¤¿¡£¡Ê¤¢¤Ã¤Æ¤ë¤«¤Ê¡©¡Ë
¤³¤Î¤Þ¤Þ¥³¥Ô¥Ú¤·¤Æ¤â¥·¥ó¥¿¥Ã¥¯¥¹¥¨¥é¡¼¤ÇÆ°¤­¤Þ¤»¤ó¤¬¡¢Á´³Ñ¥¹¥Ú¡¼¥¹¤ò¥¹¥Ú¡¼¥¹¡Ê2¤Ä¤È¤«4¤Ä¤È¤«¡Ë¤ä¥¿¥Ö¤Ê¤É¤ËÃÖ¤­´¹¤¨¤ì¤ÐÆ°¤­¤Þ¤¹¡£

k=[]
for i in range(0,301):
¡¡k.append(i)
print(k)

max_k=max(k)
print(max_k)

for j in range(0,301):
¡¡if j%2==0:
¡¡¡¡k[j]=k[j//2]
¡¡else:
¡¡¡¡k[j]=k[j//2]+1

print(list(k))
max_k1=max(k)
print(max_k1)
¡¡¡¡ 10·î29Æü¡Ê¶â¡Ë 13:05:00¡¡¡¡ ¡¡¡¡50979
¡Ö¿ô³Ø¡×¾®Î¹¹Ô
Ruby¤Ç¡¢ºÆµ¢´Ø¿ô¤òÍøÍѤ·¤Þ¤·¤¿¡£

$g=Array.new(17)
$c=0
def a(i)
¡¡if i==17 then if $g.sum==10 then $c+=1 end
¡¡else
¡¡¡¡for b in [0,1]
¡¡¡¡¡¡$g[i]=b;
¡¡¡¡¡¡if b==0 && i>1 then¡¡if $g[i-2]+$g[i-1]!=2 then a(i+1) end
¡¡¡¡¡¡else
¡¡¡¡¡¡¡¡a(i+1)
¡¡¡¡¡¡end
¡¡¡¡end
¡¡end
end

a(0)
p $c
¡¡¡¡ 10·î31Æü¡ÊÆü¡Ë 1:36:52¡¡¡¡ ¡¡¡¡50980
¤Þ¤ë¥±¥ó
ñ½ã¤ËÇò¹õ17¸Ä¤òʤ٤ơ¢¹õ¤¬7¸Ä¤«¤ÄÇòÇò¹õ¤¬¤Ê¤¤¥Ñ¥¿¡¼¥ó¤Î¸Ä¿ô¤ò¥«¥¦¥ó¥È¤µ¤»¤Æ¤ß¤Þ¤·¤¿¡£

p (0..(2**17)).map{|i|format("%017b",i)}.count{|s|s.count("1")==7&&s !~/001/}
¡¡¡¡ 11·î1Æü¡Ê·î¡Ë 15:45:24¡¡¡¡ ¡¡¡¡50981