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

Pages: 1-

Puzzle time!

Name: Anonymous 2011-09-10 18:34

Python solution to puzzle on this URL: http://www.davar.net/MATH/PROBLEMS/EINSTEIN.HTM

from itertools import permutations
facts = {
    'H': 'blue, green, red, white, yellow'.split(', '),
    'N': 'Brit, Dane, German, Norwegian, Swede'.split(', '),
    'B': 'beer, coffee, milk, tea, water'.split(', '),
    'C': 'Blue Master, Dunhill, Pall Mall, Prince, blend'.split(', '),
    'P': 'cat, bird, dog, fish, horse'.split(', ')
}

def both(ax, x, ay, y):
    for idx, xi in enumerate(x):
        if xi == ax and y[idx] == ay: return True
    return False

def neighbor(ax, x, ay, y):
    return abs(x.index(ax) - y.index(ay)) == 1

def show_answer(h, n, b, c, p):
    print '=='
    for idx, hi in enumerate(h):
        print '%6s %9s %6s %11s %5s' % (hi, n[idx], b[idx], c[idx], p[idx])

for h in permutations(facts['H']):
    # 4
    if h.index('white') - h.index('green') != 1: continue
    for n in permutations(facts['N']):
        #1, 9, 14
        if not both('Brit', n, 'red', h): continue
        if n.index('Norwegian') != 0: continue
        if not neighbor('Norwegian', n, 'blue', h): continue
        for b in permutations(facts['B']):
            # 3, 5, 8
            if not both('Dane', n, 'tea', b): continue
            if not both('green', h, 'coffee', b): continue
            if b.index('milk') != 2: continue
            for c in permutations(facts['C']):
                # 7, 12, 13, 15
                if not both('yellow', h, 'Dunhill', c): continue
                if not both('Blue Master', c, 'beer', b): continue
                if not both('German', n, 'Prince', c): continue
                if not neighbor('blend', c, 'water', b): continue
                for p in permutations(facts['P']):
                    # 2, 6, 10, 11
                    if not both('Swede', n, 'dog', p): continue
                    if not both('Pall Mall', c, 'bird', p): continue
                    if not neighbor('blend', c, 'cat', p): continue
                    if not neighbor('horse', p, 'Dunhill', c): continue
                    show_answer(h, n, b, c, p)

Name: Anonymous 2011-09-10 20:40

Go back to playing with your barbie dolls.

Name: Anonymous 2011-09-10 20:53

>>2 in your face!

Name: Anonymous 2011-09-10 21:14

SLOW AS FUCK!

Name: Anonymous 2011-09-10 21:15

>>3
Go clean another toilet you mental midget.

Name: Anonymous 2011-09-10 21:45

>>5 in your face for the rest of this thread!

Name: tdavis 2011-09-10 21:47

Functional languages seem like a joke to me.  Maybe, Pied Piper.

In the past, I had brotherly love.  I guess I'm still a little bothered by lies.  I shouldn't be.  Maybe, I'll like Jews more when I'm aligned with God.

http://bible.cc/luke/10-21.htm

God really does seem Jewish.  You just have to love justice and not interviene.  If God's starving Africa, fuck-it.  God does plenty of evolution on Jews, lucky them.

God says...
Line 65330

that remained.

39:10 But Nebuzaradan the captain of the guard left of the poor of the
people, which had nothing, in the land of Judah, and gave them
vineyards and fields at the same time.

39:11 Now Nebuchadrezzar king of Babylon gave charge concerning
Jeremiah to Nebuzaradan the captain of the guard, saying, 39:12 Take
him, and look well to him, and do him no harm; but do unto him even as
he shall say unto thee.

Name: Anonymous 2011-09-10 21:52

Oh you! Are you bruteforcing?

Name: Anonymous 2011-09-10 21:55

I haven't looked at OP's code (mostly because it is a comment-free eyesore), but I can already tell that >>2,5 are huge faggots.

Name: n3n7i 2011-09-10 22:40

2% of six billion is still quite a few...
...i don't think you're supposed to use a program though? // neat anyhow

*hasn't solved it either =( didn't even get an extra bit of info out....

Name: tdavis 2011-09-10 22:42

>>9

It's poisonous afroturfing shit.

If you think you're hot shit, do a miracle.  I'll bet God does not give you the time of day :-)

God says...
Line: 41477

and the Amorites.

9:2 For they have taken of their daughters for themselves, and for
their sons: so that the holy seed have mingled themselves with the
people of those lands: yea, the hand of the princes and rulers hath
been chief in this trespass.

9:3 And when I heard this thing, I rent my garment and my mantle, and
plucked off the hair of my head and of my beard, and sat down
astonied.

9:4 Then were assembled unto me every one that trembled at the words
of the God of Israel, because of the transgression of those that had
been carried away; and I sat astonied until the evening sacrifice.

Name: Anonymous 2011-09-10 22:47

>>10

Yer offering must have sucked, Cain.

Yer the African if you cannot see the equivalence between any form of spirit puppeting.  Speaking tongues, ouija board, craps... it's all equivalent.

God says...
bemoaned contradict tends boldness Heaven succouredst courteously
enlightens sentences marriage festival Catholics evils
discontent nests skirts bowing Myself foully perturbations
hurt To savour PRINT slowly universal worlds add count
pitied From wasted Minerva bringeth mutability stumbling
step Form hungered capital sources dew fumed turn finest
ariseth quick trample charges

Name: tdavis 2011-09-10 22:58

http://www.biblestudytools.com/proverbs/16-33-compare.html

I get songs from Heaven.  Bootleg angel songs :-)

http://www.losethos.com/videos/organ.html
http://www.losethos.com/hymns.html

If you want songs from a muse (God), offer something first and use LoseThos, of course.  ;-)


God says...

C:\TEXT\WEALTH.TXT

out from its coffers may be very large, that which is continually
running into them must be at least equally large, so that, without any
further care or attention, those coffers are likely to be always equally
or very near equally full, and scarce ever to require any extraordinary
expense to replenish them. If, on the contrary, the sum of the
repayments from certain other customers, falls commonly very much
short of the advances which it makes to them, it cannot with any safety
continue to deal with

Name: Anonymous 2011-09-11 3:07

>>13

loserthos troll sucks :(

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