Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Maths

Name: Anonymous 2008-10-17 10:51

a * b * c = 1
a + b + c = 1

How do enumerated some solutions?

Name: Anonymous 2008-10-17 13:20

for a in range(-1000000000, 100000000):
    for b in range(-1000000000, 1000000000):
        for c in range(-1000000000, 1000000000):
            if a * b * c == 1 and a + b + c == 1:
                print a, b, c


Go!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List