¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§ |
Á´Éô²£¤Ê¤Î¤¬2¡ß2¡ß2¡á8Ä̤ê
£²ËܽĤ¬4¡ß2¡ß2¡á16Ä̤ê 4ËܽĤÇƱ¤¸ÃʤʤΤ¬2¡ß2¡á4Ä̤ê 4ËܽĤÇÃʤ¬¤º¤ì¤Æ¤¤¤ë¤Î¤¬4Ä̤ê Á´Éô¤Ç32Ä̤ê¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 0:09:01¡¡¡¡
¡¡¡¡50817 |
¤¤¤Á¤´¤ß¤ë¤¯ |
2*2*n¤Ç²¿Ä̤ê¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¤«
n <= 10^12 Ä̤ê¿ô¤ÏµðÂç¤Ë¤Ê¤ê¤¦¤ë¤Î¤Ç998244353¤Ç³ä¤Ã¤¿¤¢¤Þ¤ê¤ÇÅú¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¤ß¤¿¤¤¤ÊÌäÂê¤ò¹Í¤¨¤Æ¤ß¤Þ¤¹¡£ |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 0:14:24¡¡¡¡
¡¡¡¡50818 |
º£Ç¯¤«¤é¹âÎð¼Ô |
¹â¤µÊý¸þ¤ò3Ãʤ˶èÀڤäơ£²¼¤«¤é¡¢£¤È¤¹¤ë
¡¢£¤È¤â²£¤Î¾ì¹ç¤¬¡¢2^2=8 ¡¤Ï²£¡Ê2¤È¤ª¤ê¡Ë¤Ç¡¢¢£¤ò½Ä¤Ë¤¹¤ë¡£2Ëܤº¤Ä½Ä¤¬4¡¢4ËܽĤ¬1¡£Á´Éô¤Ç¡¢2*(4+1)=10 £¤¬²£¡Ê2¤È¤ª¤ê¡Ë¤Ç¡¢¡¢¤ò½Ä¤Ë¤¹¤ë¡£2Ëܤº¤Ä½Ä¤¬4¡¢4ËܽĤ¬1¡£Á´Éô¤Ç¡¢2*(4+1)=10 ¡¤Î1Ëܤȣ¤ÎÈ¿ÂЦ¤Î1Ëܤ¬²£¤Ç¡¢»Ä¤ê¤Ï½Ä¤Ç¡¢4 Á´Éô¤Ç¡¢8+10+10+4¡á32¤È¤ª¤ê |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 0:27:37¡¡¡¡
¡¡¡¡50820 |
pnae |
#50818 3x3¹ÔÎó¤ÎÎß¾è¤Ë{1,0,0}¤ò¤«¤±¤ë¤³¤È¤Ëµ¢Ãå¤Ç¤¤½¤¦¤Ê¤Î¤Ç¡¢¤½¤Î¤è¤¦¤Ë¤·¤Æ²ò¤±¤ë¤È»×¤¤¤Þ¤¹ |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 0:28:24¡¡¡¡
¡¡¡¡50821 |
»ç¤Îé¬é¯¤Î¿Í |
½Ä¤ò»È¤ï¤Ê¤¤¾ì¹ç¡¢2*2*2¡á8Ä̤ꡣ
1ÃÊÌܤ˽Ĥò»È¤ï¤Ê¤¤¤Ç¡¢2ÃÊÌÜ-3ÃÊÌܤ˽Ĥò»È¤¦¾ì¹ç 1ÃÊÌܤÎÃÖ¤Êý¤¬2ÄÌ¤ê ½Ä¤ò2ËܻȤ¦¾ì¹ç¤¬£´Ä̤ꡢ½Ä¤ò4ËܻȤ¦¾ì¹ç¤¬£±Ä̤ê 2*(4+1)¡á10Ä̤ꡣ ƱÍͤˡ¢ 3ÃÊÌܤ˽Ĥò»È¤ï¤Ê¤¤¤Ç¡¢1ÃÊÌÜ-2ÃÊÌܤ˽Ĥò»È¤¦¾ì¹ç 10Ä̤ꡣ ºÇ¸å¤Ë 1ÃÊÌÜ-2ÃÊÌÜ¡¢2ÃÊÌÜ-3ÃÊÌܤ˽Ĥò»È¤¦¾ì¹ç £´ÄÌ¤ê ·×32Ä̤ê // |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 0:29:57¡¡¡¡
¡¡¡¡50822 |
¤¤¤Á¤´¤ß¤ë¤¯ |
#50821
¤½¤¦¤Ç¤¹¤Í¡£ ¤Ê¤ó¤«¤¤¤¤´¶¤¸¤ËÆñ°×ÅÙÄ´À°¤Ç¤¤Ê¤¤¤Ç¤¹¤«¤Í¡£ |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 0:35:07¡¡¡¡
¡¡¡¡50823 |
¤¤¤Á¤´¤ß¤ë¤¯ |
¤È¤¤¤¦¤«¤³¤ì¤Ç¤¹¤Í
https://oeis.org/A006253 |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 0:42:23¡¡¡¡
¡¡¡¡50824 |
J¥Þ¥Þ |
Â礤¤Î©ÂΤÎ3✕2¤ÎÌ̤òÄìÌ̤Ȥ·¤Æ¹Í¤¨Ä¾¤·¡¢
¾®¤µ¤¤Î©ÂΤòΩ¤Æ¤ë½ê¤Ï✕¤ò0,2,4,6¸Ä½ñ¤¤Ê¤¬¤é¡¢¾å²¼ÆóÃʤǰ㤦ÃÖ¤Êý¤¬¤¢¤ë¾ì¹ç¤ä¡¢ ÂоÎÀ¤Î¤¢¤ë¤â¤Î¤Ï½ÅÊ£¤µ¤»¤Æ¤·»»¤·¤Þ¤·¤¿¡£ Îã¤Ë¤è¤Ã¤Æ¤ªÌܱø¤·¤Î¼ê½ñ¤²èÁü¤Ç¤¹¤¬ https://d.kuku.lu/05b56e78f |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 1:24:05¡¡¡¡
¡¡¡¡50825 |
J¥Þ¥Þ |
ʸ»ú²½¤±¤Ï¡¢¡Ö3¤«¤±¤ë2¡×¤È¡¢¡Ö¥Ð¥Ä°õ¡×¤Î»ö¤Ç¤¹ |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 1:25:49¡¡¡¡
¡¡¡¡50826 |
¥´¥ó¤È¤â |
ÍÆ´ï¤ËľÊýÂÎx¤Ï20²Õ½êÃÖ¤±¤ë¤¬
1¤«¤é20¤Þ¤ÇÈÖ¹æ¤ò¿¶¤êÈï¤é¤Ê¤¤¤è¤¦¤Ë¤·¤Æ ½½¿ÊBasic ¤Ç print time$ for a=1 to 20 for b=1 to 20 if b=a then goto 50 if a=1 and (b=3 or b=4 or b=13 or b=16) then goto 50 if a=2 and (b=3 or b=4 or b=14 or b=15) then goto 50 if a=3 and (b=1 or b=2 or b=13 or b=14) then goto 50 if a=4 and (b=1 or b=2 or b=15 or b=16) then goto 50 if a=5 and (b=7 or b=8 or b=13 or b=16 or b=17 or b=20) then goto 50 if a=6 and (b=7 or b=8 or b=14 or b=15 or b=18 or b=19) then goto 50 if a=7 and (b=5 or b=6 or b=13 or b=14 or b=17 or b=18) then goto 50 if a=8 and (b=5 or b=6 or b=15 or b=16 or b=19 or b=20) then goto 50 if a=9 and (b=11 or b=12 or b=17 or b=20) then goto 50 if a=10 and (b=11 or b=12 or b=18 or b=19) then goto 50 if a=11 and (b=9 or b=10 or b=17 or b=18) then goto 50 if a=12 and (b=9 or b=10 or b=19 or b=20) then goto 50 if a=13 and (b=1 or b=3 or b=5 or b=7 or b=17) then goto 50 if a=14 and (b=2 or b=3 or b=6 or b=7 or b=18) then goto 50 if a=15 and (b=2 or b=4 or b=6 or b=8 or b=19) then goto 50 if a=16 and (b=1 or b=4 or b=5 or b=8 or b=20) then goto 50 if a=17 and (b=5 or b=7 or b=9 or b=11 or b=13) then goto 50 if a=18 and (b=6 or b=7 or b=10 or b=11 or b=14) then goto 50 if a=19 and (b=6 or b=8 or b=10 or b=12 or b=15) then goto 50 if a=20 and (b=5 or b=8 or b=9 or b=12 or b=16) then goto 50 for c=1 to 20 if c=a or c=b then goto 40 if a=1 and (c=3 or c=4 or c=13 or c=16) then goto 40 if a=2 and (c=3 or c=4 or c=14 or c=15) then goto 40 if a=3 and (c=1 or c=2 or c=13 or c=14) then goto 40 if a=4 and (c=1 or c=2 or c=15 or c=16) then goto 40 if a=5 and (c=7 or c=8 or c=13 or c=16 or c=17 or c=20) then goto 40 if a=6 and (c=7 or c=8 or c=14 or c=15 or c=18 or c=19) then goto 40 if a=7 and (c=5 or c=6 or c=13 or c=14 or c=17 or c=18) then goto 40 if a=8 and (c=5 or c=6 or c=15 or c=16 or c=19 or c=20) then goto 40 if a=9 and (c=11 or c=12 or c=17 or c=20) then goto 40 if a=10 and (c=11 or c=12 or c=18 or c=19) then goto 40 if a=11 and (c=9 or c=10 or c=17 or c=18) then goto 40 if a=12 and (c=9 or c=10 or c=19 or c=20) then goto 40 if a=13 and (c=1 or c=3 or c=5 or c=7 or c=17) then goto 40 if a=14 and (c=2 or c=3 or c=6 or c=7 or c=18) then goto 40 if a=15 and (c=2 or c=4 or c=6 or c=8 or c=19) then goto 40 if a=16 and (c=1 or c=4 or c=5 or c=8 or c=20) then goto 40 if a=17 and (c=5 or c=7 or c=9 or c=11 or c=13) then goto 40 if a=18 and (c=6 or c=7 or c=10 or c=11 or c=14) then goto 40 if a=19 and (c=6 or c=8 or c=10 or c=12 or c=15) then goto 40 if a=20 and (c=5 or c=8 or c=9 or c=12 or c=16) then goto 40 if b=1 and (c=3 or c=4 or c=13 or c=16) then goto 40 if b=2 and (c=3 or c=4 or c=14 or c=15) then goto 40 if b=3 and (c=1 or c=2 or c=13 or c=14) then goto 40 if b=4 and (c=1 or c=2 or c=15 or c=16) then goto 40 if b=5 and (c=7 or c=8 or c=13 or c=16 or c=17 or c=20) then goto 40 if b=6 and (c=7 or c=8 or c=14 or c=15 or c=18 or c=19) then goto 40 if b=7 and (c=5 or c=6 or c=13 or c=14 or c=17 or c=18) then goto 40 if b=8 and (c=5 or c=6 or c=15 or c=16 or c=19 or c=20) then goto 40 if b=9 and (c=11 or c=12 or c=17 or c=20) then goto 40 if b=10 and (c=11 or c=12 or c=18 or c=19) then goto 40 if b=11 and (c=9 or c=10 or c=17 or c=18) then goto 40 if b=12 and (c=9 or c=10 or c=19 or c=20) then goto 40 if b=13 and (c=1 or c=3 or c=5 or c=7 or c=17) then goto 40 if b=14 and (c=2 or c=3 or c=6 or c=7 or c=18) then goto 40 if b=15 and (c=2 or c=4 or c=6 or c=8 or c=19) then goto 40 if b=16 and (c=1 or c=4 or c=5 or c=8 or c=20) then goto 40 if b=17 and (c=5 or c=7 or c=9 or c=11 or c=13) then goto 40 if b=18 and (c=6 or c=7 or c=10 or c=11 or c=14) then goto 40 if b=19 and (c=6 or c=8 or c=10 or c=12 or c=15) then goto 40 if b=20 and (c=5 or c=8 or c=9 or c=12 or c=16) then goto 40 for d=1 to 20 if d=a or d=b or d=c then goto 30 if a=1 and (d=3 or d=4 or d=13 or d=16) then goto 30 if a=2 and (d=3 or d=4 or d=14 or d=15) then goto 30 if a=3 and (d=1 or d=2 or d=13 or d=14) then goto 30 if a=4 and (d=1 or d=2 or d=15 or d=16) then goto 30 if a=5 and (d=7 or d=8 or d=13 or d=16 or d=17 or d=20) then goto 30 if a=6 and (d=7 or d=8 or d=14 or d=15 or d=18 or d=19) then goto 30 if a=7 and (d=5 or d=6 or d=13 or d=14 or d=17 or d=18) then goto 30 if a=8 and (d=5 or d=6 or d=15 or d=16 or d=19 or d=20) then goto 30 if a=9 and (d=11 or d=12 or d=17 or d=20) then goto 30 if a=10 and (d=11 or d=12 or d=18 or d=19) then goto 30 if a=11 and (d=9 or d=10 or d=17 or d=18) then goto 30 if a=12 and (d=9 or d=10 or d=19 or d=20) then goto 30 if a=13 and (d=1 or d=3 or d=5 or d=7 or d=17) then goto 30 if a=14 and (d=2 or d=3 or d=6 or d=7 or d=18) then goto 30 if a=15 and (d=2 or d=4 or d=6 or d=8 or d=19) then goto 30 if a=16 and (d=1 or d=4 or d=5 or d=8 or d=20) then goto 30 if a=17 and (d=5 or d=7 or d=9 or d=11 or d=13) then goto 30 if a=18 and (d=6 or d=7 or d=10 or d=11 or d=14) then goto 30 if a=19 and (d=6 or d=8 or d=10 or d=12 or d=15) then goto 30 if a=20 and (d=5 or d=8 or d=9 or d=12 or d=16) then goto 30 if b=1 and (d=3 or d=4 or d=13 or d=16) then goto 30 if b=2 and (d=3 or d=4 or d=14 or d=15) then goto 30 if b=3 and (d=1 or d=2 or d=13 or d=14) then goto 30 if b=4 and (d=1 or d=2 or d=15 or d=16) then goto 30 if b=5 and (d=7 or d=8 or d=13 or d=16 or d=17 or d=20) then goto 30 if b=6 and (d=7 or d=8 or d=14 or d=15 or d=18 or d=19) then goto 30 if b=7 and (d=5 or d=6 or d=13 or d=14 or d=17 or d=18) then goto 30 if b=8 and (d=5 or d=6 or d=15 or d=16 or d=19 or d=20) then goto 30 if b=9 and (d=11 or d=12 or d=17 or d=20) then goto 30 if b=10 and (d=11 or d=12 or d=18 or d=19) then goto 30 if b=11 and (d=9 or d=10 or d=17 or d=18) then goto 30 if b=12 and (d=9 or d=10 or d=19 or d=20) then goto 30 if b=13 and (d=1 or d=3 or d=5 or d=7 or d=17) then goto 30 if b=14 and (d=2 or d=3 or d=6 or d=7 or d=18) then goto 30 if b=15 and (d=2 or d=4 or d=6 or d=8 or d=19) then goto 30 if b=16 and (d=1 or d=4 or d=5 or d=8 or d=20) then goto 30 if b=17 and (d=5 or d=7 or d=9 or d=11 or d=13) then goto 30 if b=18 and (d=6 or d=7 or d=10 or d=11 or d=14) then goto 30 if b=19 and (d=6 or d=8 or d=10 or d=12 or d=15) then goto 30 if b=20 and (d=5 or d=8 or d=9 or d=12 or d=16) then goto 30 if c=1 and (d=3 or d=4 or d=13 or d=16) then goto 30 if c=2 and (d=3 or d=4 or d=14 or d=15) then goto 30 if c=3 and (d=1 or d=2 or d=13 or d=14) then goto 30 if c=4 and (d=1 or d=2 or d=15 or d=16) then goto 30 if c=5 and (d=7 or d=8 or d=13 or d=16 or d=17 or d=20) then goto 30 if c=6 and (d=7 or d=8 or d=14 or d=15 or d=18 or d=19) then goto 30 if c=7 and (d=5 or d=6 or d=13 or d=14 or d=17 or d=18) then goto 30 if c=8 and (d=5 or d=6 or d=15 or d=16 or d=19 or d=20) then goto 30 if c=9 and (d=11 or d=12 or d=17 or d=20) then goto 30 if c=10 and (d=11 or d=12 or d=18 or d=19) then goto 30 if c=11 and (d=9 or d=10 or d=17 or d=18) then goto 30 if c=12 and (d=9 or d=10 or d=19 or d=20) then goto 30 if c=13 and (d=1 or d=3 or d=5 or d=7 or d=17) then goto 30 if c=14 and (d=2 or d=3 or d=6 or d=7 or d=18) then goto 30 if c=15 and (d=2 or d=4 or d=6 or d=8 or d=19) then goto 30 if c=16 and (d=1 or d=4 or d=5 or d=8 or d=20) then goto 30 if c=17 and (d=5 or d=7 or d=9 or d=11 or d=13) then goto 30 if c=18 and (d=6 or d=7 or d=10 or d=11 or d=14) then goto 30 if c=19 and (d=6 or d=8 or d=10 or d=12 or d=15) then goto 30 if c=20 and (d=5 or d=8 or d=9 or d=12 or d=16) then goto 30 for e=1 to 20 if e=a or e=b or e=c or e=d then goto 20 if a=1 and (e=3 or e=4 or e=13 or e=16) then goto 20 if a=2 and (e=3 or e=4 or e=14 or e=15) then goto 20 if a=3 and (e=1 or e=2 or e=13 or e=14) then goto 20 if a=4 and (e=1 or e=2 or e=15 or e=16) then goto 20 if a=5 and (e=7 or e=8 or e=13 or e=16 or e=17 or e=20) then goto 20 if a=6 and (e=7 or e=8 or e=14 or e=15 or e=18 or e=19) then goto 20 if a=7 and (e=5 or e=6 or e=13 or e=14 or e=17 or e=18) then goto 20 if a=8 and (e=5 or e=6 or e=15 or e=16 or e=19 or e=20) then goto 20 if a=9 and (e=11 or e=12 or e=17 or e=20) then goto 20 if a=10 and (e=11 or e=12 or e=18 or e=19) then goto 20 if a=11 and (e=9 or e=10 or e=17 or e=18) then goto 20 if a=12 and (e=9 or e=10 or e=19 or e=20) then goto 20 if a=13 and (e=1 or e=3 or e=5 or e=7 or e=17) then goto 20 if a=14 and (e=2 or e=3 or e=6 or e=7 or e=18) then goto 20 if a=15 and (e=2 or e=4 or e=6 or e=8 or e=19) then goto 20 if a=16 and (e=1 or e=4 or e=5 or e=8 or e=20) then goto 20 if a=17 and (e=5 or e=7 or e=9 or e=11 or e=13) then goto 20 if a=18 and (e=6 or e=7 or e=10 or e=11 or e=14) then goto 20 if a=19 and (e=6 or e=8 or e=10 or e=12 or e=15) then goto 20 if a=20 and (e=5 or e=8 or e=9 or e=12 or e=16) then goto 20 if b=1 and (e=3 or e=4 or e=13 or e=16) then goto 20 if b=2 and (e=3 or e=4 or e=14 or e=15) then goto 20 if b=3 and (e=1 or e=2 or e=13 or e=14) then goto 20 if b=4 and (e=1 or e=2 or e=15 or e=16) then goto 20 if b=5 and (e=7 or e=8 or e=13 or e=16 or e=17 or e=20) then goto 20 if b=6 and (e=7 or e=8 or e=14 or e=15 or e=18 or e=19) then goto 20 if b=7 and (e=5 or e=6 or e=13 or e=14 or e=17 or e=18) then goto 20 if b=8 and (e=5 or e=6 or e=15 or e=16 or e=19 or e=20) then goto 20 if b=9 and (e=11 or e=12 or e=17 or e=20) then goto 20 if b=10 and (e=11 or e=12 or e=18 or e=19) then goto 20 if b=11 and (e=9 or e=10 or e=17 or e=18) then goto 20 if b=12 and (e=9 or e=10 or e=19 or e=20) then goto 20 if b=13 and (e=1 or e=3 or e=5 or e=7 or e=17) then goto 20 if b=14 and (e=2 or e=3 or e=6 or e=7 or e=18) then goto 20 if b=15 and (e=2 or e=4 or e=6 or e=8 or e=19) then goto 20 if b=16 and (e=1 or e=4 or e=5 or e=8 or e=20) then goto 20 if b=17 and (e=5 or e=7 or e=9 or e=11 or e=13) then goto 20 if b=18 and (e=6 or e=7 or e=10 or e=11 or e=14) then goto 20 if b=19 and (e=6 or e=8 or e=10 or e=12 or e=15) then goto 20 if b=20 and (e=5 or e=8 or e=9 or e=12 or e=16) then goto 20 if c=1 and (e=3 or e=4 or e=13 or e=16) then goto 20 if c=2 and (e=3 or e=4 or e=14 or e=15) then goto 20 if c=3 and (e=1 or e=2 or e=13 or e=14) then goto 20 if c=4 and (e=1 or e=2 or e=15 or e=16) then goto 20 if c=5 and (e=7 or e=8 or e=13 or e=16 or e=17 or e=20) then goto 20 if c=6 and (e=7 or e=8 or e=14 or e=15 or e=18 or e=19) then goto 20 if c=7 and (e=5 or e=6 or e=13 or e=14 or e=17 or e=18) then goto 20 if c=8 and (e=5 or e=6 or e=15 or e=16 or e=19 or e=20) then goto 20 if c=9 and (e=11 or e=12 or e=17 or e=20) then goto 20 if c=10 and (e=11 or e=12 or e=18 or e=19) then goto 20 if c=11 and (e=9 or e=10 or e=17 or e=18) then goto 20 if c=12 and (e=9 or e=10 or e=19 or e=20) then goto 20 if c=13 and (e=1 or e=3 or e=5 or e=7 or e=17) then goto 20 if c=14 and (e=2 or e=3 or e=6 or e=7 or e=18) then goto 20 if c=15 and (e=2 or e=4 or e=6 or e=8 or e=19) then goto 20 if c=16 and (e=1 or e=4 or e=5 or e=8 or e=20) then goto 20 if c=17 and (e=5 or e=7 or e=9 or e=11 or e=13) then goto 20 if c=18 and (e=6 or e=7 or e=10 or e=11 or e=14) then goto 20 if c=19 and (e=6 or e=8 or e=10 or e=12 or e=15) then goto 20 if c=20 and (e=5 or e=8 or e=9 or e=12 or e=16) then goto 20 if d=1 and (e=3 or e=4 or e=13 or e=16) then goto 20 if d=2 and (e=3 or e=4 or e=14 or e=15) then goto 20 if d=3 and (e=1 or e=2 or e=13 or e=14) then goto 20 if d=4 and (e=1 or e=2 or e=15 or e=16) then goto 20 if d=5 and (e=7 or e=8 or e=13 or e=16 or e=17 or e=20) then goto 20 if d=6 and (e=7 or e=8 or e=14 or e=15 or e=18 or e=19) then goto 20 if d=7 and (e=5 or e=6 or e=13 or e=14 or e=17 or e=18) then goto 20 if d=8 and (e=5 or e=6 or e=15 or e=16 or e=19 or e=20) then goto 20 if d=9 and (e=11 or e=12 or e=17 or e=20) then goto 20 if d=10 and (e=11 or e=12 or e=18 or e=19) then goto 20 if d=11 and (e=9 or e=10 or e=17 or e=18) then goto 20 if d=12 and (e=9 or e=10 or e=19 or e=20) then goto 20 if d=13 and (e=1 or e=3 or e=5 or e=7 or e=17) then goto 20 if d=14 and (e=2 or e=3 or e=6 or e=7 or e=18) then goto 20 if d=15 and (e=2 or e=4 or e=6 or e=8 or e=19) then goto 20 if d=16 and (e=1 or e=4 or e=5 or e=8 or e=20) then goto 20 if d=17 and (e=5 or e=7 or e=9 or e=11 or e=13) then goto 20 if d=18 and (e=6 or e=7 or e=10 or e=11 or e=14) then goto 20 if d=19 and (e=6 or e=8 or e=10 or e=12 or e=15) then goto 20 if d=20 and (e=5 or e=8 or e=9 or e=12 or e=16) then goto 20 for f=1 to 20 if f=a or f=b or f=c or f=d or f=e then goto 10 if a=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if a=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if a=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if a=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if a=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if a=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if a=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if a=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if a=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if a=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if a=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if a=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if a=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if a=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if a=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if a=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if a=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if a=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if a=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if a=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 if b=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if b=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if b=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if b=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if b=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if b=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if b=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if b=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if b=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if b=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if b=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if b=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if b=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if b=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if b=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if b=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if b=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if b=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if b=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if b=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 if c=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if c=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if c=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if c=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if c=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if c=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if c=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if c=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if c=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if c=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if c=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if c=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if c=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if c=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if c=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if c=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if c=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if c=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if c=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if c=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 if d=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if d=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if d=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if d=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if d=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if d=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if d=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if d=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if d=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if d=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if d=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if d=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if d=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if d=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if d=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if d=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if d=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if d=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if d=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if d=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 if e=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if e=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if e=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if e=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if e=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if e=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if e=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if e=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if e=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if e=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if e=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if e=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if e=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if e=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if e=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if e=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if e=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if e=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if e=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if e=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 let s=s+1 10 next f 20 next e 30 next d 40 next c 50 next b 60 next a print s/fact(6) print time$ end f9²¡¤·¤Æ 05:37:36 32 05:37:39¡¡ |
ËÀî»Ô¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 5:41:02¡¡¡¡
MAIL:fttnm528@ybb.ne.jp ¡¡¡¡50827 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
£±¡ß£±¡ß£²¤ÎľÊýÂΤÎĺÅÀ¤òÎÙ¤ê¹ç¤Ã¤¿2¸Ä¤º¤Ä¤Ëʬ¤±¤ë¤³¤È¤ò¹Í¤¨¤Þ¤·¤¿¡£
¼ù·Á¿Þ¤ò¤Ä¤«¤¤¤Þ¤·¤¿¡£ |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 7:23:04¡¡¡¡
¡¡¡¡50828 |
¥¹¥â¡¼¥¯¥Þ¥ó |
¾å¤ÎÌÌ2x2 ¤Îʬ³äÊýË¡
¡Ãor ¡¼¡¡¤Î£²Ä̤ꡦ¡¦¡¦¤½¤ì¤¾¤ìº¸Â¦ÌÌ...5Ä̤ê T ¤Î4Ä̤ê...2ÄÌ¤ê ¡Ü¡¡¤Î1Ä̤ê...2Ä̤ê so...2*5*2+4*2*2+1*2*2=40ÄÌ¤ê ¤È¤¤¤¦Ã±½ã¤Ê¤³¤È¤Ç¤Ï¤Ê¤¯½ÅÊ£¤¹¤ë¤â¤Î¤¬¤¢¤ë¤ó¤À¤í¤¦¤È...ǧ¾Ú¤Ç¤·¤¿ Orz 2^3=8¸Ä¤¬½ÅÊ£¤·¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¤¬¤è¤¦¤ï¤«¤ê¤Þ¤»¤ó¤Ç¤¹...^^; ³§¤µ¤ó¤Î¤Ç¤ªÊÙ¶¯ ^^ |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 14:11:43¡¡¡¡
¡¡¡¡50829 |
SECOND |
#50824 ¥µ¥¤¥È¤Î¾Ò²ð¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
https://oeis.org/A006253 ¡¢a(n)*(-1)^n = (1-T(n+1,-2))/3, n>=0 ¤ò·×»»¤·¤Æ¤ß¤¿¡£ º£²ó¤Ï a(3) ¤Î¾ì¹ç¤ÎÍͤǡ¢4cm ¤À¤È 121Ä̤ê¤Ë¤Ê¤ë¤Î¤«¤Ê¡¢¡¢¤Ê¤¼¤³¤¦¤Ê¤ë¤Î¤«¡©²æÇڤϥͥ³¤Ë¾®È½¤Ç¤¢¤ë¡¢ FOR n=0 TO 25 IF MOD(n,5)=0 THEN PRINT CHR$(13);CHR$(10);"!"; PRINT " a(";STR$(n);")=";(1-T(n+1,-2))/3/(-1)^n; NEXT n FUNCTION T(n,x) !£î¼¡,£ø¤Î¡¢Chebyshev(¥Á¥§¥Ó¥·¥§¥Õ)¿¹à¼°¤ÎÃÍ IF n=0 THEN LET T=1 ELSEIF n=1 THEN LET T=x ELSEIF 2<=n THEN LET T=2*x*T(n-1,x)-T(n-2,x) END IF END FUNCTION ! a(0)= 1 a(1)= 2 a(2)= 9 a(3)= 32 a(4)= 121 ! a(5)= 450 a(6)= 1681 a(7)= 6272 a(8)= 23409 a(9)= 87362 ! a(10)= 326041 a(11)= 1216800 a(12)= 4541161 a(13)= 16947842 a(14)= 63250209 ! a(15)= 236052992 a(16)= 880961761 a(17)= 3287794050 a(18)= 12270214441 a(19)= 45793063712 ! a(20)= 170902040409 a(21)= 637815097922 a(22)= 2380358351281 a(23)= 8883618307200 a(24)= 33154114877521 ! a(25)= 123732841202882 |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 22:25:13¡¡¡¡
¡¡¡¡50830 |
¤ß¤«¤ó |
¤¤¤Ä¤â¤Î¤è¤¦¤ËÁ²²½¼°¤Ã¤Ý¤¯¤ä¤í¤¦¤È¡¢£±Ãʤξì¹ç¡¦£²Ãʤξì¹ç¤ò¹Í¤¨¤Æ
·ë²Ì¤òÍøÍѤ·¤è¤¦¤È¤·¤Æ¤¦¤Þ¤¯¹Ô¤«¤º¡¢·ë¶É¾ì¹çʬ¤±¤Ç¤·¤¿¡£ ¥ï¥ó¥Ñ¥¿¡¼¥ó¤Ç²ò¤³¤¦¤È¤·¤Æ¤â¤¦¤Þ¤¯¤¤¤«¤Ê¤¤¡¢¤Ã¤Æ¤³¤È¤Ç¤¹¤Í¡£ |
¡¡¡¡
9·î9Æü¡ÊÌÚ¡Ë 23:36:12¡¡¡¡
¡¡¡¡50831 |
¤À¤¤¤¹¤±¡¡¡÷¥«¥ì¡¼¹¥¤ |
¤ªµ×¤·¤Ö¤ê¤Ç¤¹¡£10·î¤«¤éÆàÎɤËž¶Ð¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
º£²ó¤ÎÌäÂê¤ÏƬ¤ÎÃæ¤Ç²ò¤±¤Þ¤·¤¿¡£ 1ÃÊ¡Ü1ÃÊ¡Ü1Ãʤ¬8ÄÌ¤ê ¾å1Ãʡܲ¼2Ãʤ¬10ÄÌ¤ê ¾å2Ãʡܲ¼1Ãʤ¬10Ä̤ê 3Ãʤ¬4ÄÌ¤ê ¹ç·×32Ä̤ê |
¡¡¡¡
9·î10Æü¡Ê¶â¡Ë 0:15:10¡¡¡¡
¡¡¡¡50832 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
#50828¡¡¼«¸Ê¥ì¥¹¤Ç¤¹¡£
¸À¤¤Êý¤¬ÉÔ½½Ê¬¤Ç¤·¤¿¡£2¡ß2¡ß3¤ÎľÊýÂΤòñ°ÌΩÊýÂΤËʬ³ä¤·¤Æ¡¢¤½¤ì¤¾¤ì¤òÅÀ¤À¤È¹Í¤¨¤ë¤È¡¢ 4¡ß3=12¸Ä¤ÎÅÀ¤¬Ä¾ÊýÂΡÊñ°ÌΩÊýÂÎ2¸Ä¡Ë¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤³¤ì¤é¤ÎÅÀ¤«¤éÎÙ¤ê¹ç¤¦2¸Ä¤ò¤Ä¤Ê¤²¤ë¤ÈÌäÂê¤Î¾®¤µ¤ÊľÊýÂÎ1¸Ä¤ËÂбþ¤·¤Þ¤¹¡£ ¤½¤ó¤Ê¤ï¤±¤Ç¡¢12¸Ä¤ÎÅÀ¤òÎÙ¤ê¹ç¤¦2¸Ä¤º¤Ä¤Ëʬ¤±¤ëʬ¤±Êý¤Î¿ô¤ò¿ô¤¨¤ë¤È¤¤¤¤¤È¹Í¤¨¤Þ¤·¤¿¡£ ¤½¤ó¤ÊȯÁÛ¤«¤é¡¢¤¤¤Ä¤â¤Î¤è¤¦¤Ë£Ò£õ£â£ù¥×¥í¥°¥é¥à¤ò¤·¤Æ¤ß¤Þ¤·¤¿¡£2¡ß2¡ßn¤Î¾ì¹ç¤Î¿ô¤ò·×»»¤·¤Þ¤¹¡£ n=3 m=2*n k=(0..4*n-1).to_a.permutation p k.map{|x|x.each_slice(2).map{|y|y.sort}.sort.to_a}.uniq.count{|v|v.count{|z|a=z[1]-z[0];a==3&&(z[0]%4==0)||a==1||a==4}==m} »þ´Ö¤Ï¤«¤«¤ê¤Þ¤¹¤ÍWWW |
¡¡¡¡
9·î10Æü¡Ê¶â¡Ë 8:39:25¡¡¡¡
¡¡¡¡50833 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
#50824 ¿Í´Ö¤Ã¤Æ¥Û¥ó¥È¤Ë¤¹¤´¤¤¤È»×¤¤¤Þ¤·¤¿¡£
¤´¾Ò²ð¤Î¥µ¥¤¥È¤ÎÃæ¤ËÁ²²½¼°¤â¤¢¤ê¤Þ¤·¤¿¡£ a(n+3)=-a(n)+3*a(n+1)+3*a(n+2)¤¬À®¤êΩ¤Ä¤è¤¦¤Ç¤¹¡£¡Ê¤Ê¤ó¤Ç¤À¤í¢ö¡Á¡©¡©¡Ë ¤È¤Ë¤â¤«¤¯¤Ë¤â¡¢»È¤¦¤È°ìȯ¤Ç½Ö»þ¤Ë£²£°£ã£í¤Îʬ¤Þ¤Ç½Ð¤Þ¤·¤¿¡£ n=20 $k=[0,1,2] for i in 2..n $k.push -$k[i-2]+3*$k[i-1]+3*$k[i] end Åú¤¨¤Ï¡¢ [0, 1, 2, 9, 32, 121, 450, 1681, 6272, 23409, 87362, 326041, 1216800, 4541161, 16947842, 63250209, 236052992, 880961761, 3287794050, 12270214441, 45793063712, 170902040409] ¤Ç¤¹¤Ã¤Æ¡ª¡ª |
¡¡¡¡
9·î10Æü¡Ê¶â¡Ë 13:00:13¡¡¡¡
¡¡¡¡50834 |
¥´¥ó¤È¤â |
#50827
¼«¸Ê¥ì¥¹¤Ç¡¦¡¦¡¦ >ÍÆ´ï¤ËľÊýÂÎx¤Ï20²Õ½êÃÖ¤±¤ë¤¬ >1¤«¤é20¤Þ¤ÇÈÖ¹æ¤ò¿¶¤êÈï¤é¤Ê¤¤¤è¤¦¤Ë¤·¤Æ ÈÖ¹æ¤ÏÌäÂêʸ¤ÎÍÆ´ï¤ò 1*1¤ÎΩÊýÂΤǥ¢¥ë¥Õ¥¡¤Ù¥Ã¥È¤ò¿¶¤ê 1ÈÖ¾å: ad bc ¿¿Ãæ: eh fg 1ÈÖ²¼: il jk ¤Ç20²Õ½ê¤Ï 1=a+d,2=b+c,3=a+b,4=c+d,5=e+h,6=f+g,7=e+f,8=g+h,9=i+l,10=j+k,11=i+j,12=l+k 13=a+e,14=b+f,15=c+g,16=d+h,17=e+i,18=f+j,19=g+k,20=h+l¤Ç ¼Â¹Ô®ÅÙ¤ò¾å¤²¤ÆÈÖ¹æ¤ò¿¶¤êľÊýÂÎx¤¬¤É¤Î¤è¤¦¤ËµÍ¤á¹þ¤Þ¤ì¤ë¤«¤ò¤À¤·¤Æ¤ß¤Þ¤·¤¿!! print time$ for a=1 to 20 for b=a+1 to 20 if b=a then goto 50 if a=1 and (b=3 or b=4 or b=13 or b=16) then goto 50 if a=2 and (b=3 or b=4 or b=14 or b=15) then goto 50 if a=3 and (b=1 or b=2 or b=13 or b=14) then goto 50 if a=4 and (b=1 or b=2 or b=15 or b=16) then goto 50 if a=5 and (b=7 or b=8 or b=13 or b=16 or b=17 or b=20) then goto 50 if a=6 and (b=7 or b=8 or b=14 or b=15 or b=18 or b=19) then goto 50 if a=7 and (b=5 or b=6 or b=13 or b=14 or b=17 or b=18) then goto 50 if a=8 and (b=5 or b=6 or b=15 or b=16 or b=19 or b=20) then goto 50 if a=9 and (b=11 or b=12 or b=17 or b=20) then goto 50 if a=10 and (b=11 or b=12 or b=18 or b=19) then goto 50 if a=11 and (b=9 or b=10 or b=17 or b=18) then goto 50 if a=12 and (b=9 or b=10 or b=19 or b=20) then goto 50 if a=13 and (b=1 or b=3 or b=5 or b=7 or b=17) then goto 50 if a=14 and (b=2 or b=3 or b=6 or b=7 or b=18) then goto 50 if a=15 and (b=2 or b=4 or b=6 or b=8 or b=19) then goto 50 if a=16 and (b=1 or b=4 or b=5 or b=8 or b=20) then goto 50 if a=17 and (b=5 or b=7 or b=9 or b=11 or b=13) then goto 50 if a=18 and (b=6 or b=7 or b=10 or b=11 or b=14) then goto 50 if a=19 and (b=6 or b=8 or b=10 or b=12 or b=15) then goto 50 if a=20 and (b=5 or b=8 or b=9 or b=12 or b=16) then goto 50 for c=b+1 to 20 if c=a or c=b then goto 40 if a=1 and (c=3 or c=4 or c=13 or c=16) then goto 40 if a=2 and (c=3 or c=4 or c=14 or c=15) then goto 40 if a=3 and (c=1 or c=2 or c=13 or c=14) then goto 40 if a=4 and (c=1 or c=2 or c=15 or c=16) then goto 40 if a=5 and (c=7 or c=8 or c=13 or c=16 or c=17 or c=20) then goto 40 if a=6 and (c=7 or c=8 or c=14 or c=15 or c=18 or c=19) then goto 40 if a=7 and (c=5 or c=6 or c=13 or c=14 or c=17 or c=18) then goto 40 if a=8 and (c=5 or c=6 or c=15 or c=16 or c=19 or c=20) then goto 40 if a=9 and (c=11 or c=12 or c=17 or c=20) then goto 40 if a=10 and (c=11 or c=12 or c=18 or c=19) then goto 40 if a=11 and (c=9 or c=10 or c=17 or c=18) then goto 40 if a=12 and (c=9 or c=10 or c=19 or c=20) then goto 40 if a=13 and (c=1 or c=3 or c=5 or c=7 or c=17) then goto 40 if a=14 and (c=2 or c=3 or c=6 or c=7 or c=18) then goto 40 if a=15 and (c=2 or c=4 or c=6 or c=8 or c=19) then goto 40 if a=16 and (c=1 or c=4 or c=5 or c=8 or c=20) then goto 40 if a=17 and (c=5 or c=7 or c=9 or c=11 or c=13) then goto 40 if a=18 and (c=6 or c=7 or c=10 or c=11 or c=14) then goto 40 if a=19 and (c=6 or c=8 or c=10 or c=12 or c=15) then goto 40 if a=20 and (c=5 or c=8 or c=9 or c=12 or c=16) then goto 40 if b=1 and (c=3 or c=4 or c=13 or c=16) then goto 40 if b=2 and (c=3 or c=4 or c=14 or c=15) then goto 40 if b=3 and (c=1 or c=2 or c=13 or c=14) then goto 40 if b=4 and (c=1 or c=2 or c=15 or c=16) then goto 40 if b=5 and (c=7 or c=8 or c=13 or c=16 or c=17 or c=20) then goto 40 if b=6 and (c=7 or c=8 or c=14 or c=15 or c=18 or c=19) then goto 40 if b=7 and (c=5 or c=6 or c=13 or c=14 or c=17 or c=18) then goto 40 if b=8 and (c=5 or c=6 or c=15 or c=16 or c=19 or c=20) then goto 40 if b=9 and (c=11 or c=12 or c=17 or c=20) then goto 40 if b=10 and (c=11 or c=12 or c=18 or c=19) then goto 40 if b=11 and (c=9 or c=10 or c=17 or c=18) then goto 40 if b=12 and (c=9 or c=10 or c=19 or c=20) then goto 40 if b=13 and (c=1 or c=3 or c=5 or c=7 or c=17) then goto 40 if b=14 and (c=2 or c=3 or c=6 or c=7 or c=18) then goto 40 if b=15 and (c=2 or c=4 or c=6 or c=8 or c=19) then goto 40 if b=16 and (c=1 or c=4 or c=5 or c=8 or c=20) then goto 40 if b=17 and (c=5 or c=7 or c=9 or c=11 or c=13) then goto 40 if b=18 and (c=6 or c=7 or c=10 or c=11 or c=14) then goto 40 if b=19 and (c=6 or c=8 or c=10 or c=12 or c=15) then goto 40 if b=20 and (c=5 or c=8 or c=9 or c=12 or c=16) then goto 40 for d=c+1 to 20 if d=a or d=b or d=c then goto 30 if a=1 and (d=3 or d=4 or d=13 or d=16) then goto 30 if a=2 and (d=3 or d=4 or d=14 or d=15) then goto 30 if a=3 and (d=1 or d=2 or d=13 or d=14) then goto 30 if a=4 and (d=1 or d=2 or d=15 or d=16) then goto 30 if a=5 and (d=7 or d=8 or d=13 or d=16 or d=17 or d=20) then goto 30 if a=6 and (d=7 or d=8 or d=14 or d=15 or d=18 or d=19) then goto 30 if a=7 and (d=5 or d=6 or d=13 or d=14 or d=17 or d=18) then goto 30 if a=8 and (d=5 or d=6 or d=15 or d=16 or d=19 or d=20) then goto 30 if a=9 and (d=11 or d=12 or d=17 or d=20) then goto 30 if a=10 and (d=11 or d=12 or d=18 or d=19) then goto 30 if a=11 and (d=9 or d=10 or d=17 or d=18) then goto 30 if a=12 and (d=9 or d=10 or d=19 or d=20) then goto 30 if a=13 and (d=1 or d=3 or d=5 or d=7 or d=17) then goto 30 if a=14 and (d=2 or d=3 or d=6 or d=7 or d=18) then goto 30 if a=15 and (d=2 or d=4 or d=6 or d=8 or d=19) then goto 30 if a=16 and (d=1 or d=4 or d=5 or d=8 or d=20) then goto 30 if a=17 and (d=5 or d=7 or d=9 or d=11 or d=13) then goto 30 if a=18 and (d=6 or d=7 or d=10 or d=11 or d=14) then goto 30 if a=19 and (d=6 or d=8 or d=10 or d=12 or d=15) then goto 30 if a=20 and (d=5 or d=8 or d=9 or d=12 or d=16) then goto 30 if b=1 and (d=3 or d=4 or d=13 or d=16) then goto 30 if b=2 and (d=3 or d=4 or d=14 or d=15) then goto 30 if b=3 and (d=1 or d=2 or d=13 or d=14) then goto 30 if b=4 and (d=1 or d=2 or d=15 or d=16) then goto 30 if b=5 and (d=7 or d=8 or d=13 or d=16 or d=17 or d=20) then goto 30 if b=6 and (d=7 or d=8 or d=14 or d=15 or d=18 or d=19) then goto 30 if b=7 and (d=5 or d=6 or d=13 or d=14 or d=17 or d=18) then goto 30 if b=8 and (d=5 or d=6 or d=15 or d=16 or d=19 or d=20) then goto 30 if b=9 and (d=11 or d=12 or d=17 or d=20) then goto 30 if b=10 and (d=11 or d=12 or d=18 or d=19) then goto 30 if b=11 and (d=9 or d=10 or d=17 or d=18) then goto 30 if b=12 and (d=9 or d=10 or d=19 or d=20) then goto 30 if b=13 and (d=1 or d=3 or d=5 or d=7 or d=17) then goto 30 if b=14 and (d=2 or d=3 or d=6 or d=7 or d=18) then goto 30 if b=15 and (d=2 or d=4 or d=6 or d=8 or d=19) then goto 30 if b=16 and (d=1 or d=4 or d=5 or d=8 or d=20) then goto 30 if b=17 and (d=5 or d=7 or d=9 or d=11 or d=13) then goto 30 if b=18 and (d=6 or d=7 or d=10 or d=11 or d=14) then goto 30 if b=19 and (d=6 or d=8 or d=10 or d=12 or d=15) then goto 30 if b=20 and (d=5 or d=8 or d=9 or d=12 or d=16) then goto 30 if c=1 and (d=3 or d=4 or d=13 or d=16) then goto 30 if c=2 and (d=3 or d=4 or d=14 or d=15) then goto 30 if c=3 and (d=1 or d=2 or d=13 or d=14) then goto 30 if c=4 and (d=1 or d=2 or d=15 or d=16) then goto 30 if c=5 and (d=7 or d=8 or d=13 or d=16 or d=17 or d=20) then goto 30 if c=6 and (d=7 or d=8 or d=14 or d=15 or d=18 or d=19) then goto 30 if c=7 and (d=5 or d=6 or d=13 or d=14 or d=17 or d=18) then goto 30 if c=8 and (d=5 or d=6 or d=15 or d=16 or d=19 or d=20) then goto 30 if c=9 and (d=11 or d=12 or d=17 or d=20) then goto 30 if c=10 and (d=11 or d=12 or d=18 or d=19) then goto 30 if c=11 and (d=9 or d=10 or d=17 or d=18) then goto 30 if c=12 and (d=9 or d=10 or d=19 or d=20) then goto 30 if c=13 and (d=1 or d=3 or d=5 or d=7 or d=17) then goto 30 if c=14 and (d=2 or d=3 or d=6 or d=7 or d=18) then goto 30 if c=15 and (d=2 or d=4 or d=6 or d=8 or d=19) then goto 30 if c=16 and (d=1 or d=4 or d=5 or d=8 or d=20) then goto 30 if c=17 and (d=5 or d=7 or d=9 or d=11 or d=13) then goto 30 if c=18 and (d=6 or d=7 or d=10 or d=11 or d=14) then goto 30 if c=19 and (d=6 or d=8 or d=10 or d=12 or d=15) then goto 30 if c=20 and (d=5 or d=8 or d=9 or d=12 or d=16) then goto 30 for e=d+1 to 20 if e=a or e=b or e=c or e=d then goto 20 if a=1 and (e=3 or e=4 or e=13 or e=16) then goto 20 if a=2 and (e=3 or e=4 or e=14 or e=15) then goto 20 if a=3 and (e=1 or e=2 or e=13 or e=14) then goto 20 if a=4 and (e=1 or e=2 or e=15 or e=16) then goto 20 if a=5 and (e=7 or e=8 or e=13 or e=16 or e=17 or e=20) then goto 20 if a=6 and (e=7 or e=8 or e=14 or e=15 or e=18 or e=19) then goto 20 if a=7 and (e=5 or e=6 or e=13 or e=14 or e=17 or e=18) then goto 20 if a=8 and (e=5 or e=6 or e=15 or e=16 or e=19 or e=20) then goto 20 if a=9 and (e=11 or e=12 or e=17 or e=20) then goto 20 if a=10 and (e=11 or e=12 or e=18 or e=19) then goto 20 if a=11 and (e=9 or e=10 or e=17 or e=18) then goto 20 if a=12 and (e=9 or e=10 or e=19 or e=20) then goto 20 if a=13 and (e=1 or e=3 or e=5 or e=7 or e=17) then goto 20 if a=14 and (e=2 or e=3 or e=6 or e=7 or e=18) then goto 20 if a=15 and (e=2 or e=4 or e=6 or e=8 or e=19) then goto 20 if a=16 and (e=1 or e=4 or e=5 or e=8 or e=20) then goto 20 if a=17 and (e=5 or e=7 or e=9 or e=11 or e=13) then goto 20 if a=18 and (e=6 or e=7 or e=10 or e=11 or e=14) then goto 20 if a=19 and (e=6 or e=8 or e=10 or e=12 or e=15) then goto 20 if a=20 and (e=5 or e=8 or e=9 or e=12 or e=16) then goto 20 if b=1 and (e=3 or e=4 or e=13 or e=16) then goto 20 if b=2 and (e=3 or e=4 or e=14 or e=15) then goto 20 if b=3 and (e=1 or e=2 or e=13 or e=14) then goto 20 if b=4 and (e=1 or e=2 or e=15 or e=16) then goto 20 if b=5 and (e=7 or e=8 or e=13 or e=16 or e=17 or e=20) then goto 20 if b=6 and (e=7 or e=8 or e=14 or e=15 or e=18 or e=19) then goto 20 if b=7 and (e=5 or e=6 or e=13 or e=14 or e=17 or e=18) then goto 20 if b=8 and (e=5 or e=6 or e=15 or e=16 or e=19 or e=20) then goto 20 if b=9 and (e=11 or e=12 or e=17 or e=20) then goto 20 if b=10 and (e=11 or e=12 or e=18 or e=19) then goto 20 if b=11 and (e=9 or e=10 or e=17 or e=18) then goto 20 if b=12 and (e=9 or e=10 or e=19 or e=20) then goto 20 if b=13 and (e=1 or e=3 or e=5 or e=7 or e=17) then goto 20 if b=14 and (e=2 or e=3 or e=6 or e=7 or e=18) then goto 20 if b=15 and (e=2 or e=4 or e=6 or e=8 or e=19) then goto 20 if b=16 and (e=1 or e=4 or e=5 or e=8 or e=20) then goto 20 if b=17 and (e=5 or e=7 or e=9 or e=11 or e=13) then goto 20 if b=18 and (e=6 or e=7 or e=10 or e=11 or e=14) then goto 20 if b=19 and (e=6 or e=8 or e=10 or e=12 or e=15) then goto 20 if b=20 and (e=5 or e=8 or e=9 or e=12 or e=16) then goto 20 if c=1 and (e=3 or e=4 or e=13 or e=16) then goto 20 if c=2 and (e=3 or e=4 or e=14 or e=15) then goto 20 if c=3 and (e=1 or e=2 or e=13 or e=14) then goto 20 if c=4 and (e=1 or e=2 or e=15 or e=16) then goto 20 if c=5 and (e=7 or e=8 or e=13 or e=16 or e=17 or e=20) then goto 20 if c=6 and (e=7 or e=8 or e=14 or e=15 or e=18 or e=19) then goto 20 if c=7 and (e=5 or e=6 or e=13 or e=14 or e=17 or e=18) then goto 20 if c=8 and (e=5 or e=6 or e=15 or e=16 or e=19 or e=20) then goto 20 if c=9 and (e=11 or e=12 or e=17 or e=20) then goto 20 if c=10 and (e=11 or e=12 or e=18 or e=19) then goto 20 if c=11 and (e=9 or e=10 or e=17 or e=18) then goto 20 if c=12 and (e=9 or e=10 or e=19 or e=20) then goto 20 if c=13 and (e=1 or e=3 or e=5 or e=7 or e=17) then goto 20 if c=14 and (e=2 or e=3 or e=6 or e=7 or e=18) then goto 20 if c=15 and (e=2 or e=4 or e=6 or e=8 or e=19) then goto 20 if c=16 and (e=1 or e=4 or e=5 or e=8 or e=20) then goto 20 if c=17 and (e=5 or e=7 or e=9 or e=11 or e=13) then goto 20 if c=18 and (e=6 or e=7 or e=10 or e=11 or e=14) then goto 20 if c=19 and (e=6 or e=8 or e=10 or e=12 or e=15) then goto 20 if c=20 and (e=5 or e=8 or e=9 or e=12 or e=16) then goto 20 if d=1 and (e=3 or e=4 or e=13 or e=16) then goto 20 if d=2 and (e=3 or e=4 or e=14 or e=15) then goto 20 if d=3 and (e=1 or e=2 or e=13 or e=14) then goto 20 if d=4 and (e=1 or e=2 or e=15 or e=16) then goto 20 if d=5 and (e=7 or e=8 or e=13 or e=16 or e=17 or e=20) then goto 20 if d=6 and (e=7 or e=8 or e=14 or e=15 or e=18 or e=19) then goto 20 if d=7 and (e=5 or e=6 or e=13 or e=14 or e=17 or e=18) then goto 20 if d=8 and (e=5 or e=6 or e=15 or e=16 or e=19 or e=20) then goto 20 if d=9 and (e=11 or e=12 or e=17 or e=20) then goto 20 if d=10 and (e=11 or e=12 or e=18 or e=19) then goto 20 if d=11 and (e=9 or e=10 or e=17 or e=18) then goto 20 if d=12 and (e=9 or e=10 or e=19 or e=20) then goto 20 if d=13 and (e=1 or e=3 or e=5 or e=7 or e=17) then goto 20 if d=14 and (e=2 or e=3 or e=6 or e=7 or e=18) then goto 20 if d=15 and (e=2 or e=4 or e=6 or e=8 or e=19) then goto 20 if d=16 and (e=1 or e=4 or e=5 or e=8 or e=20) then goto 20 if d=17 and (e=5 or e=7 or e=9 or e=11 or e=13) then goto 20 if d=18 and (e=6 or e=7 or e=10 or e=11 or e=14) then goto 20 if d=19 and (e=6 or e=8 or e=10 or e=12 or e=15) then goto 20 if d=20 and (e=5 or e=8 or e=9 or e=12 or e=16) then goto 20 for f=e+1 to 20 if f=a or f=b or f=c or f=d or f=e then goto 10 if a=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if a=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if a=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if a=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if a=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if a=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if a=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if a=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if a=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if a=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if a=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if a=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if a=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if a=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if a=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if a=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if a=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if a=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if a=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if a=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 if b=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if b=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if b=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if b=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if b=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if b=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if b=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if b=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if b=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if b=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if b=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if b=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if b=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if b=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if b=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if b=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if b=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if b=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if b=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if b=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 if c=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if c=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if c=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if c=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if c=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if c=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if c=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if c=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if c=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if c=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if c=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if c=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if c=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if c=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if c=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if c=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if c=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if c=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if c=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if c=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 if d=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if d=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if d=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if d=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if d=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if d=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if d=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if d=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if d=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if d=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if d=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if d=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if d=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if d=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if d=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if d=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if d=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if d=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if d=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if d=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 if e=1 and (f=3 or f=4 or f=13 or f=16) then goto 10 if e=2 and (f=3 or f=4 or f=14 or f=15) then goto 10 if e=3 and (f=1 or f=2 or f=13 or f=14) then goto 10 if e=4 and (f=1 or f=2 or f=15 or f=16) then goto 10 if e=5 and (f=7 or f=8 or f=13 or f=16 or f=17 or f=20) then goto 10 if e=6 and (f=7 or f=8 or f=14 or f=15 or f=18 or f=19) then goto 10 if e=7 and (f=5 or f=6 or f=13 or f=14 or f=17 or f=18) then goto 10 if e=8 and (f=5 or f=6 or f=15 or f=16 or f=19 or f=20) then goto 10 if e=9 and (f=11 or f=12 or f=17 or f=20) then goto 10 if e=10 and (f=11 or f=12 or f=18 or f=19) then goto 10 if e=11 and (f=9 or f=10 or f=17 or f=18) then goto 10 if e=12 and (f=9 or f=10 or f=19 or f=20) then goto 10 if e=13 and (f=1 or f=3 or f=5 or f=7 or f=17) then goto 10 if e=14 and (f=2 or f=3 or f=6 or f=7 or f=18) then goto 10 if e=15 and (f=2 or f=4 or f=6 or f=8 or f=19) then goto 10 if e=16 and (f=1 or f=4 or f=5 or f=8 or f=20) then goto 10 if e=17 and (f=5 or f=7 or f=9 or f=11 or f=13) then goto 10 if e=18 and (f=6 or f=7 or f=10 or f=11 or f=14) then goto 10 if e=19 and (f=6 or f=8 or f=10 or f=12 or f=15) then goto 10 if e=20 and (f=5 or f=8 or f=9 or f=12 or f=16) then goto 10 let s=s+1 PRINT s;"//";a;b;c;d;e;f 10 next f 20 next e 30 next d 40 next c 50 next b 60 next a print time$ end f9²¡¤·¤Æ 15:40:06 1 // 1 2 5 6 9 10 2 // 1 2 5 6 11 12 3 // 1 2 5 9 18 19 4 // 1 2 6 10 17 20 5 // 1 2 7 8 9 10 6 // 1 2 7 8 11 12 7 // 1 2 7 11 19 20 8 // 1 2 8 12 17 18 9 // 1 2 17 18 19 20 10 // 1 5 9 10 14 15 11 // 1 5 11 12 14 15 12 // 1 10 14 15 17 20 13 // 2 6 9 10 13 16 14 // 2 6 11 12 13 16 15 // 2 9 13 16 18 19 16 // 3 4 5 6 9 10 17 // 3 4 5 6 11 12 18 // 3 4 5 9 18 19 19 // 3 4 6 10 17 20 20 // 3 4 7 8 9 10 21 // 3 4 7 8 11 12 22 // 3 4 7 11 19 20 23 // 3 4 8 12 17 18 24 // 3 4 17 18 19 20 25 // 3 7 9 10 15 16 26 // 3 7 11 12 15 16 27 // 3 12 15 16 17 18 28 // 4 8 9 10 13 14 29 // 4 8 11 12 13 14 30 // 4 11 13 14 19 20 31 // 9 10 13 14 15 16 32 // 11 12 13 14 15 16 15:40:07 |
ËÀî»Ô¡¡¡¡
9·î10Æü¡Ê¶â¡Ë 16:14:15¡¡¡¡
MAIL:fttnm528@ybb.ne.jp ¡¡¡¡50835 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
#50834 ¼«¸Ê¥ì¥¹¤Ç¤¹¡£
Á²²½¼°¤Î¾ÚÌÀ¤ò¤·¤Æ¤ß¤Þ¤·¤¿¡£ https://chafima.org/sansu/s1183/sansu1183.jpg |
¡¡¡¡
9·î10Æü¡Ê¶â¡Ë 17:58:13¡¡¡¡
¡¡¡¡50836 |
¤¤¤Á¤´¤ß¤ë¤¯ |
#50836
¤Ê¤ë¤Û¤ÉÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ ºÇ¶á¤³¤Î¼ê¤ÎÌäÂê¤Ï¾õÂÖ¤òbit¤Ç¤â¤Ã¤Æ¹ÔÎóÎß¾è¤Ç²ò¤¯ÊýË¡¤Ð¤«¤ê¹Í¤¨¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¡£¡£ |
¡¡¡¡
9·î10Æü¡Ê¶â¡Ë 19:15:53¡¡¡¡
¡¡¡¡50837 |
SECOND |
!¾¯¤· ¤¯¤É¤¤¤«¤â¤·¤ì¤Ê¤¤¤¬¡¢¡¢¤³¤ó¤ÊÁ²²½¼°¤â¡¢¡¢
!a(n)*(-1)^n = (1-T(n+1,-2))/3¡¡¢« ¸µ¤Î¼°¤ò¡¢¡¡ÊÑ·Á¤·¤Æ¢ª¡¡T(n+1,-2)= 1-3*a(n)*(-1)^n !T(n,x)= 2*x*T(n-1,x)-T(n-2,x)¡¡¢« ¥Á¥§¥Ó¥·¥§¥Õ¿¹à¼°¤Î !T(n,-2)= -4*T(n-1,-2)-T(n-2,-2)¡¡¡¡x=-2 ¤Î¾õÂÖ¤ËÂåÆþ¤·¤Æ¡¢T(,) ¤ò¾Ãµî¤¹¤ë¤È¡¢ ! a(n) = 2*(-1)^n + 4*a(n-1) - a(n-2)¡¡¤Ë¤Ê¤Ã¤¿¡£ FOR n=0 TO 25 IF MOD(n,5)=0 THEN PRINT CHR$(13);CHR$(10);"!"; PRINT " a(";STR$(n);")=";a(n); NEXT n FUNCTION a(n) IF n=0 THEN LET a=1 ELSEIF n=1 THEN LET a=2 ELSE LET a=2*(-1)^n +4*a(n-1) -a(n-2) END IF END FUNCTION ! a(0)= 1 a(1)= 2 a(2)= 9 a(3)= 32 a(4)= 121 ! a(5)= 450 a(6)= 1681 a(7)= 6272 a(8)= 23409 a(9)= 87362 ! a(10)= 326041 a(11)= 1216800 a(12)= 4541161 a(13)= 16947842 a(14)= 63250209 ! a(15)= 236052992 a(16)= 880961761 a(17)= 3287794050 a(18)= 12270214441 a(19)= 45793063712 ! a(20)= 170902040409 a(21)= 637815097922 a(22)= 2380358351281 a(23)= 8883618307200 a(24)= 33154114877521 ! a(25)= 123732841202882 |
¡¡¡¡
9·î12Æü¡ÊÆü¡Ë 5:38:33¡¡¡¡
¡¡¡¡50838 |
¤Ð¤Á´Ý |
²¼¤«¤é£îÃÊÌܤޤǤÎʤÙÊý¤òa(n)¤È¤¹¤ë¤È
a(0)=1¡¢a(1)=2 a(2)=a(1)¡ß2+a(0)¡ß5 a(3)=a(2)¡ß2+a(1)¡ß5+a(0)¡ß4 ¤è¤êa(3)=32¤È¤Ê¤ê¤Þ¤·¤¿¡£¤Á¤Ê¤ß¤Ë a(n+1)=2a(n)+5a(n-1)¡Ü4a(n-2)+4a(n-3)+¡¦¡¦¡¦+4a(0) ¤Ë¤Ê¤ê¤½¤¦¤Ç¤¹¡£¤³¤ì¤òn+2¤Îʬ¤Þ¤ÇÁ´¤¯Æ±Íͤ˹ͤ¨¤Æº¹¤ò¼è¤ë¤È #50836 ¡Ö¿ô³Ø¡×¾®Î¹¹Ô¤µ¤ó¤Î¸À¤ï¤ì¤ëÁ²²½¼°¤¬³Î¤«¤Ë½Ð¤ÆÍè¤Þ¤¹¡£ ÆÃÀÊýÄø¼°¤Î²ò¤¬£³¤Ä¤Î°Û¤Ê¤ë¼Â²ò¤Ê¤Î¤Ç²òÀÏŪ¤Ë²ò¤±¤½¤¦¤Ç¤¹¤Í¡£ ¤È¤³¤í¤Ç¶µ¤¨¤Æ²¼¤µ¤¤¡£¥×¥í¥°¥é¥ß¥ó¥°½é¿´¼Ô¤Ç¤¹ ³§¤µ¤ó¤Ï²¿¤Î¸À¸ì¤Ç¥×¥í¥°¥é¥ß¥ó¥°¤ò¤µ¤ì¤Æ¤ª¤é¤ì¤ë¤Î¤Ç¤·¤ç¤¦¤«¡© |
¡¡¡¡
9·î12Æü¡ÊÆü¡Ë 8:52:55¡¡¡¡
¡¡¡¡50839 |
¤Þ¤ë¥±¥ó |
ÃÙ¤ì¤Ð¤»¤Ê¤¬¤é¡¢¡¢¡¢
³§ÍͤÎÁ²²½¼°Æ³½Ð¡¢¤ª¸«»ö¤Ç¤¹¡£ Á²²½¼°¤È¤Ê¤ì¤ÐRuby¤Îhash¤ò¤Ä¤«¤Ã¤¿¥ï¥ó¥é¥¤¥Ê¡¼¡ª¡ª ¤Ð¤Á´Ý¤µ¤óÈÇ ruby -e "p Hash.new{|h,k|h[k]=k<2?k+1:h[k-1]*2+h[k-2]*5+(0..(k-3)).to_a.map{|i|h[i]*4}.sum}[3]" ¡Ö¿ô³Ø¡×¾®Î¹¹Ô¤µ¤óÈÇ ruby -e "p ans1183 = Hash.new{|h,k|h[k]=k<3?[1,2,9][k]:h[k-1]*3+h[k-2]*3-h[k-3]}[3]" ¤Á¤Ê¤ß¤Ë¡¢ºÇ¸å¤Î'3' ¤ò '100' ¤È¤«¤Ë¤·¤Æ¤ß¤¿¤È¤³¤í¡¢¤Û¤Ü°ì½Ö¤Ç 973982268352541414052113719150019529368114685310614630841 ¤Ã¤Æ½Ð¤Þ¤·¤¿¡£ ¶²¤ë¤Ù¤·Á²²½¼°¡¢¶²¤ë¤Ù¤·hash¡ª¡ª |
¡¡¡¡
9·î12Æü¡ÊÆü¡Ë 15:42:42¡¡¡¡
¡¡¡¡50840 |
¤Þ¤ë¥±¥ó |
Àè¤Û¤É¤Î¡Ö¿ô³Ø¡×¾®Î¹¹Ô¤µ¤óÈÇ¡¢¤Á¤ç¤Ã¤È;·×¤Ê¤Î¤¬Æþ¤Ã¤Á¤ã¤Ã¤Æ¤Þ¤·¤¿¡£
¼ºÎ餤¤¿¤·¤Þ¤·¤¿¡£ ¡Ö¿ô³Ø¡×¾®Î¹¹Ô¤µ¤óÈÇ ruby -e "p Hash.new{|h,k|h[k]=k<3?[1,2,9][k]:h[k-1]*3+h[k-2]*3-h[k-3]}[3]" ¤È¤µ¤é¤Ëû¤¯¤Ê¤ê¤Þ¤·¤¿¡ª¡ª ;·×¤À¤Ã¤¿Éôʬ¤Ï¡¢¼Â¸³»þ¤Ë ans1183 = Hash.new{|h,k|h[k]=k<3?[1,2,9][k]:h[k-1]*3+h[k-2]*3-h[k-3]} p ans1183[3] p ans1183[100] ¤Ê¤É¤È½ñ¤¤¤Æ¡¢Ç¤°Õ¤În¤ÎÃͤòµá¤á¤Æ¤¤¤¿Ì¾»Ä¤Ç¤¹¡£ ¤È¤³¤í¤Ç¡¢#50839 ¤ÎºÇ¸å¤ÎÌ䤤¤«¤±¡¢¡¢¡¢ > ³§¤µ¤ó¤Ï²¿¤Î¸À¸ì¤Ç¥×¥í¥°¥é¥ß¥ó¥°¤ò¤µ¤ì¤Æ¤ª¤é¤ì¤ë¤Î¤Ç¤·¤ç¤¦¤«¡© º£¹¹Åú¤¨¤ë¤Þ¤Ç¤â¤Ê¤¯¡¢»ä¤Î¾ì¹ç¤Ï¤â¤Ã¤Ñ¤é Ruby ¤Ç¤¹¡£ ¡¦¥¹¥¯¥ê¥×¥È¸À¸ì¤Ê¤Î¤Ç¡¢¥³¥ó¥Ñ¥¤¥ë¡Ê¥Ó¥ë¥É¡Ë¤»¤º¤Ë¨¼Â¹Ô¤Ç¤¤ë¡£ ¡¦À°¿ô¤Ï¥á¥â¥ê¤µ¤¨µö¤»¤Ð²¿·å¤Ç¤â·×»»¤Ç¤¤ë¡ª ¡¦ÆüËÜȯ¤Î¸À¸ì¤Ê¤Î¤Ç¡¢ÆüËܸì¥É¥¥å¥á¥ó¥È¤¬ËÉ١ʱѸ졢¶ì¼ê¤Ç¤¹¡Ë ¤Ê¤É¤ÎÍýͳ¤Çµ¤¤ËÆþ¤Ã¤Æ¤¤¤Þ¤¹¡£ |
¡¡¡¡
9·î12Æü¡ÊÆü¡Ë 16:02:24¡¡¡¡
¡¡¡¡50841 |
SECOND |
#50838¡¡ÄûÀµ¡¢¡Ö¥Á¥§¥Ó¥·¥§¥Õ¿¹à¼°¡×¤ò¡¢¢ª¡Ö¥Á¥§¥Ó¥·¥§¥Õ¿¹à¼°¤ÎÁ²²½¼°¡×¤ËÆɤßÂؤ¨¤Æ¤¯¤À¤µ¤¤¡¢¤¹¤ß¤Þ¤»¤ó¡£³ÎǧÍѤËź¤¨¤¿¥×¥í¥°¥é¥à¸À¸ì¤Ï¡¢½½¿ÊBASIC ¤Ç¤¹¡£
|
¡¡¡¡
9·î12Æü¡ÊÆü¡Ë 22:49:55¡¡¡¡
¡¡¡¡50842 |
¤Ð¤Á´Ý |
³§¡¹ÍÍ¡¡#50842¡¢#50841
»²¹Í¤Ë¤Ê¤ê¤Þ¤·¤¿¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¤È¤ê¤¢¤¨¤º¤ªÎé¤Þ¤Ç |
¡¡¡¡
9·î12Æü¡ÊÆü¡Ë 23:05:33¡¡¡¡
¡¡¡¡50843 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
#50841¡¡¤Þ¤ë¥±¥óÍÍ
¤¹¤´¤¤¡¢p Hash.new{|h,k|h[k]=k<3?[1,2,9][k]:3*h[k-1]+3*h[k-2]-h[k-3]}[100] ¤Û¤ó¤È¡¢°ì½Ö¤Ç¤¹¤Í¡£Hash¤Î°ÒÎÏ¡ª¡ª´¶·ã¤Ç¤¹¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
¡¡¡¡
9·î13Æü¡Ê·î¡Ë 7:51:25¡¡¡¡
¡¡¡¡50844 |
¤Þ¤ë¥±¥ó |
»ä¤Î´Ä¶¤Ç¤Ï 984 ¤¬¸Â³¦¤Ç¡¢985 ¤ò»ØÄꤹ¤ë¤È¡Östack level too deep¡×¤Ã¤Æ¤Ê¤ê¤Þ¤¹¡£
¤Ç¤â¡¢°ì²ó¤³¤Îhash¤òÊÑ¿ô¤ËÂåÆþ¤·¡¢¾®¹ï¤ß¤Ë·×»»¤µ¤»¤ì¤Ð 100000 ¤Ç¤â¿ôÉäǷë²Ì¤¬½Ð¤Þ¤·¤¿¡£ ¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý # Á²²½¼°¤òɽ¤·¤¿hash¤òºîÀ®¡¢ÊÑ¿ô ans1183 ¤ËÂåÆþ ans1183 = Hash.new{|h,k|h[k]=k<3?[1,2,9][k]:h[k-1]*3+h[k-2]*3-h[k-3]} # ¥¹¥¿¥Ã¥¯¤¬°î¤ì¤Ê¤¤ÄøÅÙ(900¤º¤Ä)¤Ë¹ï¤ó¤Ç¡¢hash¤ò·×»»¡Ê·×»»¤¹¤ë¤À¤±¤Çɽ¼¨¤Ï¤·¤Ê¤¤¡Ë 0.step(100000,900).each do |n| ans1183[n] end # ²þ¤á¤Æ¡¢100000¤ÎÃͤò·×»» ¡õ ·ë²Ìɽ¼¨ r = ans1183[100000] p r # ʸ»úÎó¤ËÊÑ´¹¤·¤Æ·å¿ôɽ¼¨ p r.to_s.size ¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý ¤Á¤Ê¤ß¤ËºÇ¸å¤Ëɽ¼¨¤µ¤ì¤ë·å¿ô¤Ï 57195·å¡£ ¤³¤ì¤¯¤é¤¤¤Ë¤Ê¤ë¤È¡¢º£Å٤ϥá¥â¥êÉÔ¤ÇHD¥¢¥¯¥»¥¹¤¬Áý¤¨¡¢·×»»¥¹¥Ô¡¼¥É¤¬¤á¤Á¤ã¤¯¤Á¤ãÍî¤Á¤Þ¤¹¡£ ¤Þ¡¢¤½¤ê¤ã¤½¤¦¤Ç¤¹¤Í¡£ |
¡¡¡¡
9·î13Æü¡Ê·î¡Ë 10:33:32¡¡¡¡
¡¡¡¡50845 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
#50821 pnae ¤µ¤ó
¡Ö3¡ß3¹ÔÎó¤ÎÎß¾è¤Ë{1,0,0}¤ò¤«¤±¤ë¡¦¡¦¡¦¡×¤È¤¤¤¦¤Î¤ò¹Í¤¨¤Æ¤Þ¤·¤¿¡£ Á²²½¼°¤ò·×»»¤¹¤ë¤Î¤ÈƱÃͤʤ³¤È¤¬¤Ç¤¤ë¤è¤¦¤Ê¤Î¤Ç¡¢Ruby¤Î¹ÔÎó·×»»¤ò»È¤¤¤Þ¤·¤¿¡£ require 'matrix' n=5 m=Matrix[[0,0,-1],[1,0,3],[0,1,3]] k=Matrix[[1,2,9]] p (k*m**(n-2)*Matrix[[0],[0],[1]])[0,0] n¤ÎÃͤȤ·¤Æ¡¢¹â¤µ¤ÎÃͤòÆþ¤ì¤Æ·×»»¤Ç¤¤Þ¤¹¡£ |
¡¡¡¡
9·î13Æü¡Ê·î¡Ë 11:39:00¡¡¡¡
¡¡¡¡50846 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
¤·¤Ä¤³¤¯¤Æ¤¹¤ß¤Þ¤»¤ó¡£¥ï¥ó¥é¥¤¥Ê¡¼¤Ë¤³¤À¤ï¤Ã¤Æ¡¢Ä¾Á°¤Î¥×¥í¥°¥é¥à¤ò
½ñ¤´¹¤¨¤Þ¤¹¤È¡¢ require 'matrix' p (Matrix[[1,2,9]]*Matrix[[0,0,-1],[1,0,3],[0,1,3]]**(1))[0,2] £ò£å£ñ£õ£é£ò£å¡¡£í£á£ô£ò£é£ø¤Ç¡¡1¹Ô¡¡Íפë¤Î¤¬»ÄÇ°¤Ç¤¹¡£ |
¡¡¡¡
9·î13Æü¡Ê·î¡Ë 12:13:02¡¡¡¡
¡¡¡¡50847 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
#50845
require 'matrix' p (Matrix[[1,2,9]]*Matrix[[0,0,-1],[1,0,3],[0,1,3]]**(1000000))[0,2].to_s.size ¤Ç¡¢1,000,000¡¡¤Ë¤·¤Æ¤ß¤Þ¤·¤¿¡£0.41ÉáÊby paiza.IO¡Ë¤Ç¡¢571,949·å¤Ã¤Æ¡ª¡ª ñ½ã·×»»¤Ï¤µ¤¹¤¬¤Ë®¤¤¤Ç¤¹¡£¥á¥â¥ê¡¼¤Î¿´ÇÛ¤â¤Ê¤¤¤Î¤«¤â¡£ |
¡¡¡¡
9·î13Æü¡Ê·î¡Ë 12:24:10¡¡¡¡
¡¡¡¡50848 |
¤Þ¤ë¥±¥ó |
¼Â¹Ô»þ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¿ô¤Ërequire¤ò½ñ¤¤¤Á¤ã¤¨¤Ð¡¢¥¹¥¯¥ê¥×¥È¼«ÂΤϥï¥ó¥é¥¤¥ó¤Ç¤¹¤Í¡ª¡ª
ruby -r matrix -e 'p (Matrix[[1,2,9]]*Matrix[[0,0,-1],[1,0,3],[0,1,3]]**(1))[0,2]' ºÆµ¢¤¸¤ã¤Ê¤¤¡¢¡õ hash¤¸¤ã¤Ê¤¤¤Î¤ÇÅÓÃæ¤Î¥Ç¡¼¥¿¤ò¼è¤Ã¤Æ¤ª¤¯É¬Íפâ¤Ê¤¤¤Î¤Ç¥á¥â¥ê¤ò¤½¤ó¤Ê¤Ë¿©¤ï¤Ê¤¤¡ª¡© 10,000,000 ¤Ç¤â10Éä⤫¤«¤é¤º·ë²Ì¤¬½Ð¤Þ¤·¤¿¤è¡ª¤¹¤´¤¤¡ª¡ª |
¡¡¡¡
9·î13Æü¡Ê·î¡Ë 13:35:24¡¡¡¡
¡¡¡¡50849 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
³Ú¤·¤ß¤Þ¤·¤¿¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
¤Þ¤¿¤³¤ó¤ÊÌäÂê¤ò¤ª´ê¤¤¤·¤Þ¤¹¡£¡á¡ä¥Þ¥µ¥ëÍÍ |
¡¡¡¡
9·î13Æü¡Ê·î¡Ë 16:24:09¡¡¡¡
¡¡¡¡50850 |