I am too dumb to solve it but this program can:
M, that program was dumb -- call yourself a programmer! :)
However, my first effort to re-factor the code still took 9 lines!
IQ Test #2
--
Who can propose minimum lines to re-factor Massimo's code?
Of course two lines to be included
On Sat, Dec 4, 2010 at 2:50 PM, villas villa...@gmail.com wrote:
Who can propose minimum lines to re-factor Massimo's code?
Of course two lines to be included somewhere must be:
x=[(2,3,10),(7,2,63),(6,5,66),(8,4,96)]
a,b = 9,7
Please first state your number of lines and then be prepared to
I wasn't timing, but felt like between 5 10 sec.
Thanks for the break.
On Dec 4, 9:08 am, Branko Vukelic bg.bra...@gmail.com wrote:
On Sat, Dec 4, 2010 at 2:50 PM, villas villa...@gmail.com wrote:
Who can propose minimum lines to re-factor Massimo's code?
Of course two lines to be included
20sec
On Dec 3, 9:32 am, António Ramos 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
I tricked a co-worker into solving it then left early for a beer. I
may be a genius.
On Dec 3, 8:32 am, António Ramos 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
took me a while to find my calculator(behind my desk) cuz im not that
bright at mental math ... til ... i realized im sitting in front of
one .. doohh did that indicate my intelligence ? :D 'hope not! :)
did python(usage) indicate some kind of intelligence? i hear employers
like that kind of
On Sat, Dec 4, 2010 at 11:09 PM, dustin.b dustin.bens...@googlemail.com wrote:
took me a while to find my calculator(behind my desk) cuz im not that
bright at mental math ... til ... i realized im sitting in front of
one .. doohh did that indicate my intelligence ? :D 'hope not! :)
did
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(10):
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
Google!
On Fri, Dec 3, 2010 at 10:22 AM, mdipierro 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(10):
e = ''
while i:
e = e+alphabet[i%5]
i = i / 5
try:
Is that a new IQ test? Cause I'm totally failing it. :)
On Fri, Dec 3, 2010 at 4:22 PM, mdipierro 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(10):
e = ''
while i:
10s
Are you saying it took you .002 + 83.3313 minutes?
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,
On 03-12-2010 16:39, Anthony wrote:
10s
Are you saying it took you .002 + 83.3313 minutes?
yep, very nice !!
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:
On Dec 3, 2010, at 7:22 AM, mdipierro wrote:
I am too dumb to solve it but this program can:
Cute, though the program somewhat presupposes the pattern of the answer.
The answer was obvious at a glance to those of us who had multiplication tables
drilled into us all those years ago, I think.
On 03-12-2010 17:31, Jonathan Lundell wrote:
On Dec 3, 2010, at 7:22 AM, mdipierro wrote:
I am too dumb to solve it but this program can:
Cute, though the program somewhat presupposes the pattern of the answer.
The answer was obvious at a glance to those of us who had multiplication
tables
Copied the program with wrong indentation it went infinite looping
eating all virtual memory.
So I was faster yeah!
:D
2010/12/3 Stef Mientki stef.mien...@gmail.com:
On 03-12-2010 17:31, Jonathan Lundell wrote:
On Dec 3, 2010, at 7:22 AM, mdipierro wrote:
I am too dumb to solve it but this
I didn't need to run the program, just looked how it works then I solved in
seconds, even if my IQ is under 120, now I know I can understand the
Massimo's code very well! :P
2010/12/3 Michele Comitini michele.comit...@gmail.com
Copied the program with wrong indentation it went infinite looping
On Fri, Dec 3, 2010 at 5:31 PM, Jonathan Lundell jlund...@pobox.com wrote:
The answer was obvious at a glance to those of us who had multiplication
tables drilled into us all those years ago, I think.
I hated those tables. :) Probably explains why it took me so long. But
I did in my head more
On Dec 3, 2010, at 1:19 PM, Branko Vukelic wrote:
On Fri, Dec 3, 2010 at 5:31 PM, Jonathan Lundell jlund...@pobox.com wrote:
The answer was obvious at a glance to those of us who had multiplication
tables drilled into us all those years ago, I think.
I hated those tables. :) Probably
When I saw these I was thinking what kind of weird number base is this
in to get simple addition to yield those results. Oh well back to the
planet I live on.
On Dec 3, 1:25 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Dec 3, 2010, at 1:19 PM, Branko Vukelic wrote:
On Fri, Dec 3, 2010
That's an example of thinking outside the box. :D
On Fri, Dec 3, 2010 at 10:34 PM, ron_m ron.mco...@gmail.com wrote:
When I saw these I was thinking what kind of weird number base is this
in to get simple addition to yield those results. Oh well back to the
planet I live on.
On Dec 3, 1:25
about 3 or 4 minutes with, with a paper and a pencil
On Fri, Dec 3, 2010 at 11:10 PM, Branko Vukelic bg.bra...@gmail.com wrote:
That's an example of thinking outside the box. :D
On Fri, Dec 3, 2010 at 10:34 PM, ron_m ron.mco...@gmail.com wrote:
When I saw these I was thinking what kind of
8 sec
too easy :D
On 12/4/10, Albert Abril albert.ab...@gmail.com wrote:
about 3 or 4 minutes with, with a paper and a pencil
On Fri, Dec 3, 2010 at 11:10 PM, Branko Vukelic bg.bra...@gmail.com wrote:
That's an example of thinking outside the box. :D
On Fri, Dec 3, 2010 at 10:34 PM, ron_m
hint = ^+*
On 12/4/10, Phyo Arkar phyo.arkarl...@gmail.com wrote:
8 sec
too easy :D
On 12/4/10, Albert Abril albert.ab...@gmail.com wrote:
about 3 or 4 minutes with, with a paper and a pencil
On Fri, Dec 3, 2010 at 11:10 PM, Branko Vukelic bg.bra...@gmail.com
wrote:
That's an example of
25 matches
Mail list logo