Ȥ
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()
˭ԡ 526ڡ 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 Ĥ褦˻פޤ
526ڡ 0:38:19 51541
Ȥ
#51541

˸¤ʤФ
1/6=4/26+5/390,1/6=6/45+9/270,3/6=7/15+8/240
⤢Ȼפޤ
˭ԡ 526ڡ 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;
}
526ڡ 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
äѤޤ͡
526ڡ 1:06:56 51544
ڤ
#51542

1ȤΤ0Ƥޤ(Τ˥1ȸƤޤ͡)
526ڡ 1:07:34 51545
ߤ뤯
ˤϤȽ񤤤ƤΤϲְ㤨Ȼפޤ
0ϴޤʤΤ
526ڡ 1:20:31 51546
ǯ
Τޤޤʣβˤʤޤ
֤ʬϡ飹ޤǤΤ٤ưۤʤΩƤ
ȤСϣĤǤ͡ޤƤ礦ɣġ
526ڡ 1:32:21 51547
SECOND
Τ褦Ǥ͡ηǼĤˤ֣פޤޤʤ壱ġޤǤ
526ڡ 1:44:43 51548
ޥ
ߤޤ󡢥&#12316;ȤȤ򡢴ְäƤޤޤm(_ _)m

ˤ̲⤢褦ʤΤǡեȷǼĤؤΥѥɤ񤭴ޤޤ
𡡡 526ڡ 3:03:08 HomePage:ARENA51549
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
526ڡ 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
526ڡ 6:14:09 51552
Ǹμ̿
ѥץDz򤤤Ƥߤޤץ
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̤Ǥ
526ڡ 10:51:53 51553
Mr.ǥ
¾οͤŦƤ褦ˡ6ޤޤƤ褤ΤȤƹͤϡ
1/66/43+7/258
ȤƲˤʤʤΤȻפʤ龲˽ޤ
⤷䡡6ʳǤȤΤդǤϤȻפͤľ
18957342ȤͤƤޤ
(ʬǤʤȤ褤ȤȤǤ͡
526ڡ 11:14:38 51554

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

ɤ򤯤᤯ʤΤǤƲޤ
526ڡ 12:50:17 51557
⡼ޥ
0,6ϻȤʤȹͤƤ⤹狼餺...
ۤɡ=1/6, 9/ȷǤǹޤ...
9/342=1/38
1/6-1/38=32/228=8/57
ȾʤȤĵޤޤ...^^
ʳʤȤϤ狼ޤ ^^;

ϥץǤΤǤ礦...
526ڡ 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̤Ǥ
526ڡ 13:53:37 51559

ˤʤʤΩʬΤɤ餬ܿ⤦ܿǤȻפäΤΡ褬ʤ줿ΤǡǤդοʥˡ6ߡʥˤȷơʬҤʬʣߥ+ˤʥˤdzڤΤõϤޤ
ܿˤʤꡢƱȤƤʤΤ˻Ƥߤޤ
ޤʥˡ29ʥˡ174ˤ
45ǣʣǥ
õƤȡʥˡ43ʥˡ258
ޤäΤǡ褿ȻפޤǼĤ줺6ʤΤʤΤ⤷ʤȡ³õơʥˡ57ʥˡ342ǷǼĤޤʾõѤʤΤ̲õϤޤ
526ڡ 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ޤ
526ڡ 15:04:20 51561
٥륯åĥ
ξ58910270Ȥޤ
줿ΤDzƹͤƤߤޤ
526ڡ 15:11:28 51562
Ǹμ̿
ɲäƤ⡢10Ĥޤ
526ڡ 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Ǥ
526ڡ 16:52:34 51564
ڤ
Ʊɲä줿Ǥ(01˴ޤȤ) 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;
}
526ڡ 17:51:33 51565
ޤ륱
ʸˤʤꡢߤʸξϰʲΣ

ϣʳΤ٤ưۤʤ룱
ϥ礭
դʬϤȤ˴ʬ

ץdzǧȤ郎Ĥʤϣĵޤޤ

Ǥ⡢äϣĤ˹ʤޤʺ
᣸ܣ

Ͼޤ
Ǥ⡢裲बʬǤƤޤΤǡޤ
䤷Τȿ¬ޤ

ʤߤˡդʬȤơΤ٤ưۤʤƤϤȡ
٤Ƥξ


ȤΤޤޤ

ޥ뤵󤬽ФäϡʤƣäǤ礦
526ڡ 18:05:29 MAIL:take4310@mobile.email.ne.jp 51566
ߤ뤯
0äưοΰˤʤΤǤ
̤ȻפΤǤ
526ڡ 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}

ʬǤϤʤΤǡ
526ڡ 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]]
ǤΤǡϥ䥤פȻפޤޤդ٤ƴʬȤʤʤ麸դʬϣǤʤȤȻפޤ
526ڡ 21:40:22 51569
SECOND
!ޤȤɽ򡢺äƤߤޤΤ 44 Ĥϡ09 ְۤʤ룸ġפξǤʽ׻֤20ǯΥΡȡ

! ʬ ξ϶ĤĤ餺
!դ˹礦Τϣ
!14539078 62ޤޤ ʬNo_ 8 4.06secǼĤʤ
!ǼĤΤϡ
!18957342 06ޤޤաʬ No_17 5.58secǤ ʬǤʤ
!58910270 0ĤʤΤ˷ǼĤ롩

! 12748056 39ޤޤաʬ No_ 1 3.49sec
! 12796048 53ޤޤաʬ No_ 2 3.52sec
! 12984063 75ޤޤաʬ No_ 3 3.59sec
! 13426078 59ޤޤաʬ No_ 4 3.69sec
! 13672048 59ޤޤաʬ No_ 5 3.80sec
! 13854072 69ޤޤաʬ No_ 6 3.86sec
! 13872064 59ޤޤաʬ No_ 7 3.88sec
! 14539078 62ޤޤ ʬNo_ 8 4.06sec
! 14526390 87ޤޤաʬ No_ 9 4.08sec
! 14678052 39ޤޤաʬ No_10 4.14sec
! 15793062 84ޤޤ ʬNo_11 4.52sec
! 15862093 47ޤޤ ʬNo_12 4.55sec
! 15932864 07ޤޤաʬ No_13 4.58sec
! 16743258 09ޤޤ ʬNo_14 4.81sec
! 16945270 83ޤޤաʬ No_15 4.91sec
! 16942378 05ޤޤաʬ No_16 4.91sec
! 18957342 06ޤޤաʬ No_17 5.58sec
! 23716048 59ޤޤ ʬNo_18 6.75sec
! 23918054 76ޤޤաʬ No_19 6.84sec
! 24718063 59ޤޤաʬ No_20 7.10sec
! 26834051 79ޤޤաʬ No_21 7.78sec
! 27984036 15ޤޤաʬ No_22 8.19sec
! 34709126 85ޤޤաʬ No_23 10.00sec
! 34716028 59ޤޤաʬ No_24 10.00sec
! 34956021 87ޤޤաʬ No_25 10.09sec
! 35618027 49ޤޤաʬ No_26 10.30sec
! 35712084 69ޤޤաʬ No_27 10.35sec
! 35812096 47ޤޤաʬ No_28 10.38sec
! 35916048 72ޤޤաʬ No_29 10.42sec
! 36754018 29ޤޤաʬ No_30 10.66sec
! 36714098 25ޤޤաʬ No_31 10.67sec
! 36718042 59ޤޤաʬ No_32 10.67sec
! 36918054 72ޤޤաʬ No_33 10.75sec
! 36984021 57ޤޤաʬ No_34 10.77sec
! 37815240 69ޤޤաʬ No_35 11.05sec
! 37956024 81ޤޤաʬ No_36 11.08sec
! 37921054 86ޤޤաʬ No_37 11.11sec
! 45908216 37ޤޤաʬ No_38 13.33sec
! 45912036 87ޤޤաʬ No_39 13.35sec
! 46918027 53ޤޤաʬ No_40 13.67sec
! 47812096 53ޤޤաʬ No_41 13.97sec
! 57912036 84ޤޤաʬ No_42 16.92sec
! 57984012 36ޤޤաʬ No_43 16.92sec
! 58916027 34ޤޤաʬ 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) ! 09 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
527ʶ 7:15:09 51570
SECOND
Τ 44 Ĥϡ09 ְۤʤ룸ġפξȡ֥ϥ礭פǤ
527ʶ 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)
Υץ¹ԤȡϤޤǤ
528ڡ 2:25:30 51572
Ǹμ̿
ʬȤ򳰤ȡ18957342Ǥ
528ڡ 3:17:54 51573
SECOND
̵ʤ顢ꤵƤϡΤ褦ǤʤäǤ礦

ʬ׻Ρˤϡ٤ưۤʤ룱 ƤϤޤޤϥ礭Ǥ
ΤȤ֥פƤ
528ڡ 11:31:29 51574