Although the result seems to be ok, I don't understand a bit of this program, so my IQ must be well under 120 ;-) Can you explain the program, because I can not see the program and my solution.
cheers, Stef 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 > >