¥´¥ó¤È¤â |
½½¿ÊBasic¤Ç¡¡ÍÍý¿ô¥â¡¼¥É¤Ç
FOR a=1 to 9 FOR b=1 to 9 if b=a then goto 80 FOR c=b+1 to 9 if c=a or c=b then goto 70 FOR d=1 TO 9 if d=a or d=b or d=c then goto 60 FOR e=0 to 9 if e=a or e=b or e=c or e=d then goto 50 FOR f=1 TO 9 if f=a or f=b or f=c or f=d or f=e then goto 40 FOR g=0 to 9 if g=a or g=b or g=c or g=d or g=e or g=f then goto 30 FOR h=0 to 9 if h=a or h=b or h=c or h=d or h=e or h=f or h=g then goto 20 IF gcd(a,6)=1 AND gcd(b,10*d+e)=1 AND gcd(c,10^2*f+10*g+h)=1 AND a*e*h+10*a*d*h-6*b*h+10*a*e*g+100*a*d*g-60*b*g+100*a*e*f+1000*a*d*f-600*b*f-6*c*e-60*c*d=0 AND 6*(d+10*c)*(h+10*g+100*f)<>0 THEN PRINT 10^7*a+10^6*b+10^5*c+10^4*d+10^3*e+10^2*f+10*g+h 20 next h 30 next g 40 next f 50 next e 60 next d 70 next c 80 next b 90 NEXT a END f9²¡¤·¤Æ¡¡16743258¡¦¡¦¡¦¡¦¡¦¡¦(Åú¤¨) |
ËÀî»Ô¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 0:34:14¡¡¡¡
MAIL:fttnm528@ybb.ne.jp ¡¡¡¡51540 |
·¾ÁôÅÚ¤ÎÂçÌÚ |
´ûÌóʬ¿ô¤Ë¤Ê¤ë¤Î¤Ï 1/6 = 6/43 + 7/258 ¤Î 1 ¤Ä¤Ç¡¢´ûÌó¤Ë¸Â¤é¤Ê¤±¤ì¤Ð¤µ¤é¤Ë 1/6 = 5/32 + 9/864 = 6/42 + 9/378 = 8/57 + 9/342 ¤Î 3 ¤Ä¤¬¤¢¤ë¤è¤¦¤Ë»×¤¤¤Þ¤¹ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 0:38:19¡¡¡¡
¡¡¡¡51541 |
¥´¥ó¤È¤â |
#51541
´ûÌó¤Ë¸Â¤é¤Ê¤±¤ì¤Ð¤Ç 1/6=4/26+5/390,1/6=6/45+9/270,3/6=7/15+8/240 ¤â¤¢¤ë¤È»×¤¤¤Þ¤¹¤¬¡¦¡¦¡¦ |
ËÀî»Ô¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 1:04:25¡¡¡¡
MAIL:fttnm528@ybb.ne.jp ¡¡¡¡51542 |
¤¤¤Á¤´¤ß¤ë¤¯ |
#include <bits/stdc++.h>
using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); vector<int>v = { 0,1,2,3,4,5,6,7,8,9 }; do { if (0 == v[2])continue; if (0 == v[5])continue; if (v[1] > v[4])continue; if (v[8] > v[9])continue; int a = v[0]; int b = 6; int c = v[1]; int d = 10 * v[2] + v[3]; int e = v[4]; int f = 100 * v[5] + 10 * v[6] + v[7]; if (a * d * f == c * b *f + b * d* e) { cout << a << "/" << b << "," << c << "/" << d << "," << e << "/" << f << endl; } } while (next_permutation(v.begin(), v.end())); return 0; } |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 1:06:46¡¡¡¡
¡¡¡¡51543 |
¤¤¤Á¤´¤ß¤ë¤¯ |
1/6,4/26,5/390
1/6,5/32,9/864 1/6,6/42,9/378 1/6,6/43,7/258 1/6,6/45,9/270 1/6,8/57,9/342 3/6,7/15,8/240 ¤¤¤Ã¤Ñ¤¤¤¢¤ê¤Þ¤¹¤Í¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 1:06:56¡¡¡¡
¡¡¡¡51544 |
·¾ÁôÅÚ¤ÎÂçÌÚ |
#51542
¤¢¡¢1¥±¥¿¤ÎÀ°¿ô¤È¤¤¤¦¤Î¤Ç0¤ò½ü³°¤·¤Æ¤¤¤Þ¤·¤¿(³Î¤«¤Ë¥¯¤Ï1¥±¥¿¤ÎÀ°¿ô¤È¸À¤ï¤ì¤Æ¤¤¤Þ¤»¤ó¤Í¡Ä) |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 1:07:34¡¡¡¡
¡¡¡¡51545 |
¤¤¤Á¤´¤ß¤ë¤¯ |
¥¢¡Á¥¤Ë¤Ï¤È½ñ¤¤¤Æ¤¤¤ë¤Î¤Ï²¼µ´Ö°ã¤¨¤À¤È»×¤¤¤Þ¤¹¡£
0¤Ï´Þ¤á¤Ê¤¤¤Î¤¬Àµ¤·¤¤²ò¼á¤À¤È |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 1:20:31¡¡¡¡
¡¡¡¡51546 |
º£Ç¯¤«¤é¹âÎð¼Ô |
¤³¤ÎÌäÂê¤Î¤Þ¤Þ¤À¤ÈÊ£¿ô¤Î²ò¤Ë¤Ê¤ê¤Þ¤¹¤¬
¡Ö¤³¤Îʬ¿ô¼°¤Ï¡¢£±¤«¤é£¹¤Þ¤Ç¤Î¤¹¤Ù¤Æ°Û¤Ê¤ëÀ°¿ô¤ÇÀ®Î©¤·¤Æ¤¤¤ë¡× ¤È¤¹¤ì¤Ð¡¢Åú¤¨¤Ï£±¤Ä¤Ç¤¹¤Í¡££¶¤ò´Þ¤á¤Æ¤Á¤ç¤¦¤É£¹¤Ä¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 1:32:21¡¡¡¡
¡¡¡¡51547 |
SECOND |
¤½¤Î¤è¤¦¤Ç¤¹¤Í¡¢¡¢¥³¥Î·Ç¼¨ÈĤˤâ¡Ö£¶¡×¤ò´Þ¤Þ¤Ê¤¤£¸·å£±¤Ä¡¡¤·¤«Æþ¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 1:44:43¡¡¡¡
¡¡¡¡51548 |
¥Þ¥µ¥ë |
¤¹¤ß¤Þ¤»¤ó¡¢¥¢〜¥¯¤È¤¹¤ë¤È¤³¤í¤ò¡¢´Ö°ã¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£m(_ _)m
¤½¤ì¤Ë¤è¤ëÊ̲ò¤â¤¢¤ë¤è¤¦¤Ê¤Î¤Ç¡¢Àµ²ò¥Õ¥¡¥¤¥ë¤È·Ç¼¨ÈĤؤΥѥ¹¥ï¡¼¥É¤ò½ñ¤´¹¤¨¤Þ¤·¤¿¡£¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£ |
¼«Âð¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 3:03:08¡¡¡¡
HomePage:ARENA¡¡¡¡51549 |
Taro |
1 4 5 2 6 3 9 0
1 5 9 3 2 8 6 4 1 6 7 4 3 2 5 8 1 6 9 4 2 3 7 8 1 6 9 4 5 2 7 0 1 8 9 5 7 3 4 2 3 7 8 1 5 2 4 0 |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 6:12:12¡¡¡¡
¡¡¡¡51550 |
Taro |
#51542
ʬ»Ò0¤ò¹Í¤¨¤Ê¤±¤ì¤Ð8Ä̤ê¤Ç¤·¤ç¤¦¤« FOR a=1 TO 5 FOR b=1 TO 9 FOR c=b+1 TO 9 FOR d=1 TO 9 FOR e=0 TO 9 FOR f=1 TO 9 FOR g=0 TO 9 FOR h=0 TO 9 IF a=b THEN 100 IF a=c THEN 100 IF a=d THEN 100 IF a=e THEN 100 IF a=f THEN 100 IF a=g THEN 100 IF a=h THEN 100 IF b=d THEN 100 IF b=e THEN 100 IF b=f THEN 100 IF b=g THEN 100 IF b=h THEN 100 IF c=d THEN 100 IF c=e THEN 100 IF c=f THEN 100 IF c=g THEN 100 IF c=h THEN 100 IF d=e THEN 100 IF d=f THEN 100 IF d=g THEN 100 IF d=h THEN 100 IF e=f THEN 100 IF e=g THEN 100 IF e=h THEN 100 IF f=g THEN 100 IF f=h THEN 100 IF g=h THEN 100 LET z=ABS(a/6-b/(d*10+e)-c/(100*f+10*g+h)) IF z<0.000001 THEN PRINT a;b;c;d;e;f;g;h 100 NEXT H NEXT G NEXT F NEXT E NEXT D NEXT C NEXT B NEXT A END |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 6:14:09¡¡¡¡
¡¡¡¡51552 |
ºÇ¸å¤Î¼êÉÁ¤¿ÞÌÌ¿¦¿Í |
¥Ñ¥¤¥½¥ó¥×¥í¥°¥é¥à¤Ç²ò¤¤¤Æ¤ß¤Þ¤·¤¿¡£¥×¥í¥°¥é¥à¤Ï
added1=[] added2=[] added3=[] added4=[] added5=[] added6=[] added7=[] added8=[] for a in range(1,10): ¡¡¡¡for b in range(1,10): ¡¡¡¡¡¡¡¡for c in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡for d in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for e in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for f in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for g in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for h in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡if a/6==(b/(10*d+e))+(c/(100*f+10*g+h)) and a!=b and a!=c and a!=d and a!=e and a!=f and a!=g and a!=h and b!=c and b!=d and b!=e and b!=f and b!=g and b!=h and c!=d and c!=e and c!=f and c!=g and c!=h and d!=e and d!=f and d!=g and d!=h and e!=f and e!=g and e!=h and f!=g and f!=h and g!=h and b<c: ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added1.append(a) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added2.append(b) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added3.append(c) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added4.append(d) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added5.append(e) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added6.append(f) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added7.append(g) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added8.append(h) print('¥¢=',added1) print('¥¤=',added2) print('¥¦=',added3) print('¥¨=',added4) print('¥ª=',added5) print('¥«=',added6) print('¥=',added7) print('¥¯=',added8) ¤³¤Î¥×¥í¥°¥é¥à¤òÁö¤é¤»¤ë¤È¡¢²ò¤Ï4Ä̤ê¤Ç¤¹¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 10:51:53¡¡¡¡
¡¡¡¡51553 |
Mr.¥À¥ó¥Ç¥£ |
¾¤Î¿Í¤¬»ØŦ¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¡¡6¤¬´Þ¤Þ¤ì¤Æ¤â¤è¤¤¤â¤Î¤È¤·¤Æ¹Í¤¨¡¡ºòÌë¤Ï¡¡
1/6¡á6/43+7/258 ¤È¤·¤Æ²¿¸ÎÀµ²ò¤Ë¤Ê¤é¤Ê¤¤¤Î¤«¤È»×¤¤¤Ê¤¬¤é¾²¤Ë½¢¤¤Þ¤·¤¿¡£ ¤â¤·¤ä¡¡6°Ê³°¤Ç¤È¤¤¤¦¤Î¤¬Âê°Õ¤Ç¤Ï¤È»×¤¤¡¡¹Í¤¨Ä¾¤· 18957342¡¡¤È¤¤¤¦ÃͤòÆÀ¤Æ¤³¤³¤ËÆþ¤ì¤Þ¤·¤¿¡£ (´ûÌóʬ¿ô¤Ç¤Ê¤¯¤È¤â¤è¤¤¤È¤¤¤¦¤È¤³¤í¤âÌÕÅÀ¤Ç¤·¤¿¤Í¡Ë |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 11:14:38¡¡¡¡
¡¡¡¡51554 |
J¥Þ¥Þ |
Åú¤¨¤¬7Ä̤ê½Ð¤Æ¡¢²òÅúÍó¤Ë¤ª¤µ¤Þ¤é¤ºº¤¤Ã¤Æ¤Þ¤·¤¿¡£²ò¤Êý¤âÊѤǡ¢
¥¦-¥¤=k, ¥¨¥ª=x, ¥«¥¥¯=y¤È¤¹¤ë¤È {¥¢¡ßx-6(¥¦-k)}{y-6¡ß¥¦/¥¢}=36¡ß¥¦(¥¦-k)/¥¢ ¤È¤Ê¤ë¤Î¤Ç ¥¢=5,4,3,2,1 ¥¦=9,8,7,6,5,4¡Ä k=1,2,3,4,5,6,7 ¤Î¤Û¤ÜÁíÅö¤ê¤Çõ¤·¤Þ¤·¤¿¡£ ¼°¤¬À°¿ô¤Ë¤Ê¤é¤Ê¤¤¤â¤Î¡¢¥¢,¥¤,¥¦¤ÈƱ¤¸¿ô¤¬½Ð¤ë¤â¤Î¤Ê¤ÉÈô¤Ð¤·¤Þ¤·¤¿¤¬ÂçÊѤʻþ´ÖÅ¥ËÀ¤Ç¤·¤¿¡£¾Ð Åú 14526390 15932864 16743258 16942378 16945270 18957342 37815240 ¤É¤¦²ò¤¯¤ÈÁ᤯¤Ê¤ë¤Î¤Ç¤¹¤«¡©¶µ¤¨¤Æ²¼¤µ¤¤¤Þ¤»¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 12:50:17¡¡¡¡
¡¡¡¡51557 |
¥¹¥â¡¼¥¯¥Þ¥ó |
0,6¤Ï»È¤¨¤Ê¤¤¤È¹Í¤¨¤Æ¤â¤¹¤°¤ï¤«¤é¤º...
Àè¤Û¤É¡¢º¸ÊÕ=1/6, 9/¡ö¡ö¡ö¤È·è¤áÂǤÁ¤Ç¹¶¤á¤Þ¤·¤¿¤é... 9/342=1/38 1/6-1/38=32/228=8/57 ¤È¾¯¤Ê¤¯¤È¤â°ì¤Äµá¤Þ¤ê¤Þ¤·¤¿...^^ ¤³¤ì°Ê³°¤Ê¤¤¤³¤È¤Ï¤ï¤«¤ê¤Þ¤»¤ó ^^; ¤³¤ì¤Ï¥×¥í¥°¥é¥àÌä¤Ç¤·¤¿¤Î¤Ç¤·¤ç¤¦¤«¤·¤é¤ó... |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 13:12:51¡¡¡¡
¡¡¡¡51558 |
ºÇ¸å¤Î¼êÉÁ¤¿ÞÌÌ¿¦¿Í |
¥×¥í¥°¥é¥à¤òÊѹ¹¤·¤Þ¤¹¡£¤¼¤í¤ÏÀ°¿ô¤Ê¤Î¤Ç¥¼¥í¤â´Þ¤á¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
added1=[] added2=[] added3=[] added4=[] added5=[] added6=[] added7=[] added8=[] for a in range(10): ¡¡¡¡for b in range(10): ¡¡¡¡¡¡¡¡for c in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡for d in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for e in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for f in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for g in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for h in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡if (10*d+e)!=0 and (100*f+10*g+h)!=0 and a/6==(b/(10*d+e))+(c/(100*f+10*g+h)) and a!=b and a!=c and a!=d and a!=e and a!=f and a!=g and a!=h and b!=c and b!=d and b!=e and b!=f and b!=g and b!=h and c!=d and c!=e and c!=f and c!=g and c!=h and d!=e and d!=f and d!=g and d!=h and e!=f and e!=g and e!=h and f!=g and f!=h and g!=h and b<c: ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added1.append(a) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added2.append(b) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added3.append(c) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added4.append(d) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added5.append(e) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added6.append(f) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added7.append(g) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added8.append(h) print('¥¢=',added1) print('¥¤=',added2) print('¥¦=',added3) print('¥¨=',added4) print('¥ª=',added5) print('¥«=',added6) print('¥=',added7) print('¥¯=',added8) ¤³¤Î¥×¥í¥°¥é¥à¤òÁö¤é¤»¤ë¤È¡¢²ò¤Ï40Ä̤ê¤Ç¤¹¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 13:53:37¡¡¡¡
¡¡¡¡51559 |
¤í¤í |
Êý¿Ë¤¬¤Ê¤«¤Ê¤«Î©¤¿¤º¡¢Ê¬Êì¤Î¤É¤Á¤«¤é¤¬£²¤ÎÇÜ¿ô¡¢¤â¤¦°ìÊý¤¬£³¤ÎÇÜ¿ô¤Ç¤ä¤í¤¦¤«¤È»×¤Ã¤¿¤â¤Î¤Î¡¢¤½¤ÎÀ褬ÅÓÊý¤â¤Ê¤¯´¶¤¸¤é¤ì¤¿¤Î¤Ç¡¢£²·å¤ÎÊý¤òǤ°Õ¤Î¿ô¡Ê¥¨¥ª¡Ë¡¢£³·å¤ÎÊý¤ò6¡ß¡Ê¥¨¥ª¡Ë¤È·è¤á¤Æ¡¢Ê¬»Ò¤ÎÉôʬ¤¬¡Ê£¶¡ß¥¤+¥¦¡Ë¤¬¡Ê¥¨¥ª¡Ë¤Ç³ä¤êÀÚ¤ì¤ë¤â¤Î¤òõ¤½¤¦¤«¤é»Ï¤á¤Þ¤·¤¿¡£
£¶¤ÎÇÜ¿ô¤¬£³·å¤Ë¤Ê¤ê¡¢Æ±¤¸¿ô¤¬»È¤ï¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤«¤é½ç¤Ë»î¤·¤Æ¤ß¤Þ¤·¤¿¡£ ¤Þ¤º¡Ê¥¨¥ª¡Ë¡á29¡¡¡Ê¥«¥¥¯¡Ë¡á174¡¡¤Ë¤¹¤ë¤È ¥¤¡á4¡¡¥¦¡á5¡¡¤Ç£´¤¬½ÅÊ£¤Ç¥À¥á ¤³¤¦¤·¤Æõ¤·¤Æ¤¤¤¯¤È¡¢¡Ê¥¨¥ª¡Ë¡á43¡¡¡Ê¥«¥¥¯¡Ë¡á258 ¤¬¤¦¤Þ¤¯¤¤¤Ã¤¿¤Î¤Ç¡¢½ÐÍ褿¤È»×¤¤²óÅú¤òÁ÷¤ê¤Þ¤·¤¿¤¬·Ç¼¨ÈĤËÆþ¤ì¤º¡¢¥¤¡á6¤Ê¤Î¤¬¥À¥á¤Ê¤Î¤«¤â¤·¤ì¤Ê¤¤¤È¡¢ºÆÅÙ³¤±¤Æõ¤·¤Æ¡¢¡Ê¥¨¥ª¡Ë¡á57¡¡¡Ê¥«¥¥¯¡Ë¡á342¡¡¤Ç·Ç¼¨ÈĤËÆþ¤ì¤Þ¤·¤¿¡£¤³¤ì°Ê¾åõ¤¹¤ÎÂçÊѤʤΤÇÊ̲òõº÷¤Ï¤¢¤¤é¤á¤Þ¤·¤¿¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 14:19:57¡¡¡¡
¡¡¡¡51560 |
ºÇ¸å¤Î¼êÉÁ¤¿ÞÌÌ¿¦¿Í |
¥¢¤«¤é¥¯¤ÎÀ°¿ô¤Ë6¤Ï´Þ¤Þ¤Ê¤¤¤Î¤À¤«¤é¾ò·ï¤òÄɲä·¤Þ¤¹¡£if¤Î¸å¤Ë¡¢a!=6 and b!=6 and c!=6 and d!=6 and e!=6 and f!=6 and g!=6 and h!=6¤òÁÞÆþ¤·¤Þ¤¹¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 15:04:20¡¡¡¡
¡¡¡¡51561 |
¥Ù¥ë¥¯¡¦¥«¥Ã¥Ä¥§ |
ÄûÀµÁ°¤Î¾ò·ï¤Ç58910270¤È¤·¤Þ¤·¤¿¡£
ÄûÀµ¤µ¤ì¤¿¤Î¤Ç²þ¤á¤Æ¹Í¤¨¤Æ¤ß¤Þ¤¹¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 15:11:28¡¡¡¡
¡¡¡¡51562 |
ºÇ¸å¤Î¼êÉÁ¤¿ÞÌÌ¿¦¿Í |
¾ò·ï¤òÄɲ䷤Ƥ⡢²ò¤Ï10¸Ä¤¢¤ê¤Þ¤¹¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 15:16:07¡¡¡¡
¡¡¡¡51563 |
ºÇ¸å¤Î¼êÉÁ¤¿ÞÌÌ¿¦¿Í |
¾ò·ï¤òÄɲä·¤¿¥×¥í¥°¥é¥à¤Ï
import math added1=[] added2=[] added3=[] added4=[] added5=[] added6=[] added7=[] added8=[] for a in range(10): ¡¡¡¡for b in range(10): ¡¡¡¡¡¡¡¡for c in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡for d in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for e in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for f in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for g in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for h in range(10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡if (10*d+e)!=0 and (100*f+10*g+h)!=0 and math.gcd(b,(10*d+e))==1 and math.gcd(c,(100*f+10*g+h))==1 and a/6==(b/(10*d+e))+(c/(100*f+10*g+h)) and a!=b and a!=c and a!=d and a!=e and a!=f and a!=g and a!=h and b!=c and b!=d and b!=e and b!=f and b!=g and b!=h and c!=d and c!=e and c!=f and c!=g and c!=h and d!=e and d!=f and d!=g and d!=h and e!=f and e!=g and e!=h and f!=g and f!=h and g!=h and a!=6 and b!=6 and c!=6 and d!=6 and e!=6 and f!=6 and g!=6 and h!=6 and b<c: ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added1.append(a) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added2.append(b) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added3.append(c) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added4.append(d) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added5.append(e) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added6.append(f) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added7.append(g) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added8.append(h) print('¥¢=',added1) print('¥¤=',added2) print('¥¦=',added3) print('¥¨=',added4) print('¥ª=',added5) print('¥«=',added6) print('¥=',added7) print('¥¯=',added8) ²ò¤Ï1¤Ä¤Ë¡¢¤Ê¤ê¤Þ¤·¤¿¤¬14539078¤Ç¤¹¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 16:52:34¡¡¡¡
¡¡¡¡51564 |
·¾ÁôÅÚ¤ÎÂçÌÚ |
Ʊ¤¸¤¯¡¢Äɲ䵤줿¾ò·ï¤Ç¤Ï(0¤â1¥±¥¿¤ÎÀ°¿ô¤Ë´Þ¤à¤È¤·¤Æ) 14539078 (1/6=4/39+5/078) ¤Î¤ß¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¥×¥í¥°¥é¥à¤ÏC++20¤Ç¤³¤Î¤è¤¦¤Ë #include <vector> #include <algorithm> #include <numeric> #include <cstdio> #include <ranges> int main(){ std::vector<int> numbers{0, 1, 2, 3, 4, 5, 7, 8, 9}; do{ const auto ¥¢{numbers[0]}, ¥¤{numbers[1]}, ¥¦{numbers[2]}, ¥¨{numbers[3]}, ¥ª{numbers[4]}, ¥«{numbers[5]}, ¥{numbers[6]}, ¥¯{numbers[7]}; if(¥¤ > ¥¦)std::reverse(numbers.begin() + 3, numbers.end()); const auto ¥¨¥ª{¥¨ * 10 + ¥ª}; const auto ¥«¥¥¯{¥« * 100 + ¥ * 10 + ¥¯}; const auto is_´ûÌó{std::gcd(¥¢, 6) == 1 && std::gcd(¥¤, ¥¨¥ª) == 1 && std::gcd(¥¦, ¥«¥¥¯) == 1}; if(is_´ûÌó && ¥¢ * ¥¨¥ª * ¥«¥¥¯ == 6 * ¥¤ * ¥«¥¥¯ + 6 * ¥¨¥ª * ¥¦){ for(const auto x : numbers | std::views::take(8))std::printf("%d", x); std::printf(" : %d/6 = %d/%d%d + %d/%d%d%d\n", ¥¢, ¥¤, ¥¨, ¥ª, ¥¦, ¥«, ¥, ¥¯); } std::reverse(numbers.begin() + 8, numbers.end()); }while(std::ranges::next_permutation(numbers).found); return 0; } |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 17:51:33¡¡¡¡
¡¡¡¡51565 |
¤Þ¤ë¥±¥ó |
ÌäÂêʸ¤¬ÄûÀµ¤Ë¤Ê¤ê¡¢¸½ºß¤ÎÌäÂêʸ¤Î¾ò·ï¤Ï°Ê²¼¤Î£³¤Ä
¡¡£±¡¥¥¢¡Á¥¯¤Ï£¶°Ê³°¤Î¤¹¤Ù¤Æ°Û¤Ê¤ë£±¥±¥¿¤ÎÀ°¿ô ¡¡£²¡¥¥¦¤Ï¥¤¤è¤ê¤âÂ礤¤ ¡¡£³¡¥±¦ÊÕ¤Îʬ¿ô¤Ï¤È¤â¤Ë´ûÌóʬ¿ô ¥×¥í¥°¥é¥à¤Ç³Îǧ¤·¤¿¤È¤³¤í¡¢¾ò·ï¤¬°ì¤Ä¤â¤Ê¤¤¤ÈÅú¤¨¤Ï£µ¤Äµá¤Þ¤ê¤Þ¤¹¡£ ¤Ç¤â¡¢¾ò·ï£±¤ò²Ã¤¨¤ë¤À¤±¤ÇÅú¤¨¤Ï£±¤Ä¤À¤±¤Ë¹Ê¤é¤ì¤Þ¤¹¡£¡Êº£²ó¤ÎÁÛÄê²ò¡Ë £±¡¿£¶¡á£¸¡¿£µ£·¡Ü£¹¡¿£³£´£² ¤³¤ÎÅú¤¨¤Ï¾ò·ï£²¤âËþ¤¿¤·¤Þ¤¹¡£ ¤Ç¤â¡¢¾ò·ï£³¤ÏÂ裲¹à¤¬Ìóʬ¤Ç¤¤Æ¤·¤Þ¤¦¤Î¤Ç¡¢¾ò·ï¤òËþ¤¿¤·¤Þ¤»¤ó¡£ ¾ò·ï¤òÁý¤ä¤·¤¹¤®¤¿¤â¤Î¤È¿ä¬¤·¤Þ¤¹¡£ ¤Á¤Ê¤ß¤Ë¡¢º¸ÊÕ¤ÎʬÊì¤âÉÔÌÀ¤È¤·¤Æ¡¢£±¡Á£¹¤Î¤¹¤Ù¤Æ°Û¤Ê¤ë°ì·å¤ÎÀ°¿ô¤òÅö¤Æ¤Ï¤á¤ë¤È¡¢ ¤¹¤Ù¤Æ¤Î¾ò·ï¤òËþ¤¿¤¹ £±¡¿£¸ ¡á £´¡¿£³£· ¡Ü £µ¡¿£²£¹£¶ ¤È¤¤¤¦¤Î¤¬µá¤Þ¤ê¤Þ¤·¤¿¡£ ¥Þ¥µ¥ë¤µ¤ó¤¬½Ð¤·¤¿¤«¤Ã¤¿ÌäÂê¤Ï¡¢£¶¤¸¤ã¤Ê¤¯¤Æ£¸¤À¤Ã¤¿¤ó¤Ç¤·¤ç¤¦¤«¡¢¡¢¡¢ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 18:05:29¡¡¡¡
MAIL:take4310@mobile.email.ne.jp ¡¡¡¡51566 |
¤¤¤Á¤´¤ß¤ë¤¯ |
0¤Ã¤Æ°ì·å¤Î¿ô¤Î°·¤¤¤Ë¤Ê¤ë¤Î¤Ç¤¹¤«¡©
̤ÄêµÁ¤¬Àµ¤·¤¤¤È»×¤¦¤Î¤Ç¤¹¤¬ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 20:35:34¡¡¡¡
¡¡¡¡51567 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
¤¢¤ì¤ì¡¢¤³¤ì¤Ï²ò¤Ê¤·¤Ç¤¹¡£
p ((1..9).to_a-[6]).permutation.select{|x|Rational(x[0],6)==Rational(x[1],x[3]*10+x[4])+Rational(x[2],x[5]*100+x[6]*10+x[7])&&x[2]>x[1]&&x[1].gcd(x[2]*10+x[3])==1&&x[4].gcd(x[5]*100+x[6]*10+x[7])==1} £¹¡¿£³£´£²¤¬´ûÌóʬ¿ô¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡£¡£¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 21:11:24¡¡¡¡
¡¡¡¡51568 |
¡Ö¿ô³Ø¡×¾®Î¹¹Ô |
p (1..9).to_a.permutation.select{|x|Rational(x[0],x[8])==Rational(x[1],x[3]*10+x[4])+Rational(x[2],x[5]*100+x[6]*10+x[7])}
¤Ç¡¢£±¤«¤é£¹¤ò¤Ò¤È¤Ä¤º¤ÄÆþ¤ì¤Æ¡¢¡»¡¿¡»¡á¡»¡¿¡»¡»¡Ü¡»¡¿¡»¡»¡»¤òËþ¤¿¤¹¤Î¤Ï¡¢¤Ä¤®¤Î2Ä̤ê¤Ç¤·¤¿¡£ [[1/8= 4/ 37+ 5/ 296], [1/6= 8/ 57+ 9/ 342]] ¤Ç¤¹¤Î¤Ç¡¢»ä¤Ï¥¦¡ä¥¤¤ÏÉÔÍפȻפ¤¤Þ¤¹¡£¤Þ¤¿¡¢±¦ÊÕ¤¬¤¹¤Ù¤Æ´ûÌóʬ¿ô¤È¤Ê¤ë¤Ê¤éº¸ÊÕ¤ÎʬÊì¤Ï£¸¤Ç¤Ê¤¤¤È¤À¤á¤À¤È»×¤¤¤Þ¤¹¡£ |
¡¡¡¡
5·î26Æü¡ÊÌÚ¡Ë 21:40:22¡¡¡¡
¡¡¡¡51569 |
SECOND |
!¤Þ¤È¤á¤Îɽ¤ò¡¢ºî¤Ã¤Æ¤ß¤Þ¤·¤¿¡£Á´ÂΤΠ44 ¸Ä¤Ï¡¢0¡Á9 ¤«¤é¡Ö°Û¤Ê¤ë£¸¸Ä¡×¤Î¾ò·ï¤À¤±¤Ç¤¹¡£¡Ê½êÍ×»þ´Ö¤Ï20ǯÁ°¤Î¥Î¡¼¥È¡Ë
!¡¡±¦ÊÕ ´ûÌóʬ¿ô ¤Î¾ò·ï¤Ï¶¯¤¯¡¢£µ¸Ä¤·¤«»Ä¤é¤º¡¢ !¡¡¿·¤·¤¤Âê°Õ¤Ë¹ç¤¦¤Î¤Ï£±¤Ä !¡¡¡¡14539078 ¡Ä6¤È2¤ò´Þ¤Þ¤º¡£±¦ÊÕ ´ûÌóʬ¿ô¡¡No_ 8 4.06sec¡¡·Ç¼¨ÈĤËÆþ¤ì¤Ê¤¤¡© !¡¡·Ç¼¨ÈĤËÆþ¤ì¤ë¤Î¤Ï¡¢ !¡¡¡¡18957342 ¡Ä0¤È6¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_17 5.58sec¡¡¤Ç¤¹¤¬¡¢±¦ÊÕ ´ûÌóʬ¿ô¤Ç¤Ê¤¤ !¡¡¡¡58910270 ¡Ä0¤¬£²¤Ä¤Ê¤Î¤Ë·Ç¼¨ÈĤËÆþ¤ì¤ë¡© ! 12748056 ¡Ä3¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_ 1 3.49sec ! 12796048 ¡Ä5¤È3¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_ 2 3.52sec ! 12984063 ¡Ä7¤È5¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_ 3 3.59sec ! 13426078 ¡Ä5¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_ 4 3.69sec ! 13672048 ¡Ä5¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_ 5 3.80sec ! 13854072 ¡Ä6¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_ 6 3.86sec ! 13872064 ¡Ä5¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_ 7 3.88sec ! 14539078 ¡Ä6¤È2¤ò´Þ¤Þ¤º¡£±¦ÊÕ ´ûÌóʬ¿ô¡¡No_ 8 4.06sec ! 14526390 ¡Ä8¤È7¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_ 9 4.08sec ! 14678052 ¡Ä3¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_10 4.14sec ! 15793062 ¡Ä8¤È4¤ò´Þ¤Þ¤º¡£±¦ÊÕ ´ûÌóʬ¿ô¡¡No_11 4.52sec ! 15862093 ¡Ä4¤È7¤ò´Þ¤Þ¤º¡£±¦ÊÕ ´ûÌóʬ¿ô¡¡No_12 4.55sec ! 15932864 ¡Ä0¤È7¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_13 4.58sec ! 16743258 ¡Ä0¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ ´ûÌóʬ¿ô¡¡No_14 4.81sec ! 16945270 ¡Ä8¤È3¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_15 4.91sec ! 16942378 ¡Ä0¤È5¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_16 4.91sec ! 18957342 ¡Ä0¤È6¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_17 5.58sec ! 23716048 ¡Ä5¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ ´ûÌóʬ¿ô¡¡No_18 6.75sec ! 23918054 ¡Ä7¤È6¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_19 6.84sec ! 24718063 ¡Ä5¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_20 7.10sec ! 26834051 ¡Ä7¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_21 7.78sec ! 27984036 ¡Ä1¤È5¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_22 8.19sec ! 34709126 ¡Ä8¤È5¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_23 10.00sec ! 34716028 ¡Ä5¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_24 10.00sec ! 34956021 ¡Ä8¤È7¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_25 10.09sec ! 35618027 ¡Ä4¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_26 10.30sec ! 35712084 ¡Ä6¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_27 10.35sec ! 35812096 ¡Ä4¤È7¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_28 10.38sec ! 35916048 ¡Ä7¤È2¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_29 10.42sec ! 36754018 ¡Ä2¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_30 10.66sec ! 36714098 ¡Ä2¤È5¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_31 10.67sec ! 36718042 ¡Ä5¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_32 10.67sec ! 36918054 ¡Ä7¤È2¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_33 10.75sec ! 36984021 ¡Ä5¤È7¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_34 10.77sec ! 37815240 ¡Ä6¤È9¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_35 11.05sec ! 37956024 ¡Ä8¤È1¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_36 11.08sec ! 37921054 ¡Ä8¤È6¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_37 11.11sec ! 45908216 ¡Ä3¤È7¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_38 13.33sec ! 45912036 ¡Ä8¤È7¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_39 13.35sec ! 46918027 ¡Ä5¤È3¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_40 13.67sec ! 47812096 ¡Ä5¤È3¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_41 13.97sec ! 57912036 ¡Ä8¤È4¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_42 16.92sec ! 57984012 ¡Ä3¤È6¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_43 16.92sec ! 58916027 ¡Ä3¤È4¤ò´Þ¤Þ¤º¡£±¦ÊÕ¡ÄÌóʬ²Ä ¡¡No_44 17.27sec !½ªÎ»¡¡ 29.16sec !ºîɽ¤Ë»ÈÍѤ·¤¿½½¿ÊBASIC¥×¥í¥°¥é¥à OPTION ARITHMETIC RATIONAL LET n=10 LET r=8 DIM a(n+2) DATA 0,1,2,3,4,5,6,7,8,9,0,0 MAT READ a LET t0=TIME CALL perm20(1) ! 0¡Á9 ¤Î10¸Ä¤«¤é¡¢8¸Ä¤Î¡Ö½çÎó¡×¤òŸ³«¤¹¤ë¡£ PRINT USING "!½ªÎ»¡¡###.##sec":TIME-t0 SUB perm20(k) !start CALL perm20(1) local i IF k<=r THEN FOR i=k TO n swap a(k),a(i) CALL perm20(k+1) swap a(k),a(i) NEXT i ELSE LET w2=a(4)*10+a(5) LET w3=a(6)*100+a(7)*10+a(8) IF a(1)/6=a(2)/w2+a(3)/w3 AND a(2)< a(3) THEN LET a(11)=a(11)+1 LET a(12)=TIME-t0 IF gcd(a(2),w2)=1 AND gcd(a(3),w3)=1 THEN LET w$="±¦ÊÕ ´ûÌóʬ¿ô" ELSE LET w$="±¦ÊÕ¡ÄÌóʬ²Ä " MAT PRINT USING "! <<<<<<<< ¡Ä<¤È<¤ò´Þ¤Þ¤º¡£"& w$& "¡¡No_## ###.##sec": a END IF END IF END SUB END |
¡¡¡¡
5·î27Æü¡Ê¶â¡Ë 7:15:09¡¡¡¡
¡¡¡¡51570 |
SECOND |
ÄûÀµ¡§¡¡Á´ÂΤΠ44 ¸Ä¤Ï¡¢0¡Á9 ¤«¤é¡Ö°Û¤Ê¤ë£¸¸Ä¡×¤Î¾ò·ï¤È¡Ö¥¦¤Ï¥¤¤è¤ê¤âÂ礤¤¡×¤À¤±¤Ç¤¹ |
¡¡¡¡
5·î27Æü¡Ê¶â¡Ë 8:00:48¡¡¡¡
¡¡¡¡51571 |
ºÇ¸å¤Î¼êÉÁ¤¿ÞÌÌ¿¦¿Í |
¥¼¥í¤¬1·å¤ÎÀ°¿ô¤Ç¤Ê¤±¤ì¤Ð¡¢¥×¥í¥°¥é¥à¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
import math added1=[] added2=[] added3=[] added4=[] added5=[] added6=[] added7=[] added8=[] for a in range(1,10): ¡¡¡¡for b in range(1,10): ¡¡¡¡¡¡¡¡for c in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡for d in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for e in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for f in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for g in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for h in range(1,10): ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡if (10*d+e)!=0 and (100*f+10*g+h)!=0 and math.gcd(b,(10*d+e))==1 and math.gcd(c,(100*f+10*g+h))==! and a/6==(b/(10*d+e))+(c/(100*f+10*g+h)) and a!=b and a!=c and a!=d and a!=e and a!=f and a!=g and a!=h and b!=c and b!=d and b!=e and b!=f and b!=g and b!=h and c!=d and c!=e and c!=f and c!=g and c!=h and d!=e and d!=f and d!=g and d!=h and e!=f and e!=g and e!=h and f!=g and f!=h and g!=h and a!=6 and b!=6 and c!=6 and d!=6 and e!=6 and f!=6 and g!=6 and h!=6 and b<c: ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added1.append(a) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added2.append(b) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added3.append(c) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added4.append(d) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added5.append(e) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added6.append(f) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added7.append(g) ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡added8.append(h) print('¥¢=',added1) print('¥¤=',added2) print('¥¦=',added3) print('¥¨=',added4) print('¥ª=',added5) print('¥«=',added6) print('¥=',added7) print('¥¯=',added8) ¤³¤Î¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤¹¤ë¤È¡¢²ò¤Ï¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£ |
¡¡¡¡
5·î28Æü¡ÊÅÚ¡Ë 2:25:30¡¡¡¡
¡¡¡¡51572 |
ºÇ¸å¤Î¼êÉÁ¤¿ÞÌÌ¿¦¿Í |
´ûÌóʬ¿ô¤È¤¤¤¦¾ò·ï¤ò³°¤¹¤È¡¢18957342¤Ç¤·¤¿¡£ |
¡¡¡¡
5·î28Æü¡ÊÅÚ¡Ë 3:17:54¡¡¡¡
¡¡¡¡51573 |
SECOND |
̵Îé¤Ê¤¬¤é¡¢ÁÛÄꤵ¤ì¤Æ¤¤¤¿ÌäÂê¤Ï¡¢¼¡¤Î¤è¤¦¤Ç¤Ê¤«¤Ã¤¿¤Ç¤·¤ç¤¦¤«¡£
¡¡¾å¤Îʬ¿ô·×»»¤Î¡¢¥¢¡Á¥¯¤Ë¤Ï¡¢£¶¤ò½ü¤¯¡¢¤¹¤Ù¤Æ°Û¤Ê¤ë£±¥±¥¿¤Î Àµ¤ÎÀ°¿ô¤¬Åö¤Æ¤Ï¤Þ¤ê¤Þ¤¹¡£¤¿¤À¤·¡¢¥¦¤Ï¥¤¤è¤ê¤âÂ礤¤À°¿ô¤Ç¤¹¡£ ¡¡¤³¤Î¤È¤¡¢£¸¥±¥¿¤ÎÀ°¿ô¡Ö¥¢¥¤¥¦¥¨¥ª¥«¥¥¯¡×¤òµá¤á¤Æ¤¯¤À¤µ¤¤¡£ |
¡¡¡¡
5·î28Æü¡ÊÅÚ¡Ë 11:31:29¡¡¡¡
¡¡¡¡51574 |