Re: A puzzle
Re: A puzzle
- Subject: Re: A puzzle
- From: Michelle Steiner <email@hidden>
- Date: Fri, 21 Nov 2008 10:06:18 -0700
On Nov 21, 2008, at 9:49 AM, Simon Topliss wrote:
I'm sure someone will do better but I got it down to 5.4 seconds.
set counter to 0
script k
property l : 999999
end script
repeat with i from 0 to k's l
set x to k's l
if 1 is in x then
repeat with j from 0 to x
if j is 1 then
set counter to counter + 1
end if
end repeat
end if
end repeat
counter
That gave me the wrong answer; it returned zero.
--
My body is not a democracy: you don't get a vote.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >A puzzle (From: Michelle Steiner <email@hidden>) |
| >Re: A puzzle (From: Simon Topliss <email@hidden>) |