#180634 - 2007-09-16 09:31 PM
Re: KiXgolf: A-to-Z - Public Round
[Re: NTDOC]
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
I second that!
Haven't got any time yesterday as it was my youngest doughter's school enrollment day 
Hmmm ... so I am thrown back in 3rd place, eh? Well, I can't tell if I'll find something with that short time left, but anyway, it would be my best result ever. 
$=Join($c,SubStr($,2,-$e))
stunningly sharp one 
This one works only coincidentally, because of the way the input is given, no? Edit... No, it is working intentionally .... clever, very clever!
Edited by Jochen (2007-09-16 10:18 PM)
_________________________
|
Top
|
|
|
|
#180635 - 2007-09-16 10:12 PM
Re: KiXgolf: A-to-Z - Public Round
[Re: Jochen]
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
Still, we haven't heard Jens on the absolute loop value case... So, until this is the case, here is another preliminary post:
Your solution passed all tests
KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 15 Speed = 2399 MHz Memory = 2048 MB
KiXGolf Scoring Engine Scoring Engine = 3.3
KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/16 22:07:26.015 Processing End = 2007/09/16 22:07:26.328 Duration = 0000/00/00 00:00:00.312 KiXGolf Score = 204
Thank you for participating in KiXtart Golf!
function a($b,$c)
dim $,$d,$e
$a=0
for each $ in $b
dim $f
for each $d in $b
if $<$d
for $e=-99 to -2
if $=join($c,substr($,2,-$e))&-$e-$f<$a|~$a
$a=''+(($^)-$f)+' '+$
else
if right($,-$e)=left($d,-$e)
$=$+' '+$d
$f=$f-$e+1
endfunction
_________________________
|
Top
|
|
|
|
#180639 - 2007-09-17 08:34 AM
Re: KiXgolf: A-to-Z - Public Round
[Re: Gargoyle]
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
Top
|
|
|
|
#180749 - 2007-09-20 05:33 AM
Re: KiXgolf: A-to-Z - Public Round
[Re: Sealeopard]
|
Benny69
Moderator
   
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
Congrats Jochen!
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 557 anonymous users online.
|
|
|