very inserting!!
(insert "print e" and the explanation is there )

On 03-12-2010 16:26, Richard Vézina wrote:
> Google!
>
> On Fri, Dec 3, 2010 at 10:22 AM, mdipierro <mdipie...@cs.depaul.edu
> <mailto:mdipie...@cs.depaul.edu>> wrote:
>
>     I am too dumb to solve it but this program can:
>
>     x=[(2,3,10),(7,2,63),(6,5,66),(8,4,96)]
>     alphabet = 'ab+-*'
>     for i in range(100000):
>        e = ''
>        while i:
>            e = e+alphabet[i%5]
>            i = i / 5
>        try:
>            for (a,b,c) in x:
>                if eval(e)!=c: raise Exception
>            a,b = 9,7
>            print eval(e)
>            break
>        except: pass
>
>
>     On Dec 3, 8:32 am, António Ramos <ramstei...@gmail.com 
> <mailto:ramstei...@gmail.com>> wrote:
>     > 2+3=10
>     > 7+2=63
>     > 6+5=66
>     > 8+4=96
>     > So:
>     > 9+7=???
>     >
>     > What is the answer?
>     > They say the IQ of people that can find it is above 120
>     >
>     > Dont write here the answer......
>     > Just the time, maybe
>
>

Reply via email to