#182663 - 2007-11-15 12:44 AM
Re: KiXgolf - Printer Queue - Public Round
[Re: Lonkero]
|
DrillSergeant
MM club member
   
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
|
|
Top
|
|
|
|
#182665 - 2007-11-15 01:08 AM
Re: KiXgolf - Printer Queue - Public Round
[Re: Lonkero]
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
The deadline kinda caughtup with me. Was working on 157 code - but since I posted after deadline doesn't count:
Function a($,$c)
dim $i,$j
$= split($)
$i = -1
while 1
$i = ($i + 1) * ($i < ubound($))
for $j = $[$i] to 8
if ascan($,$j+1) > -1
$j = 9
endif
next
if $j = 9
$[$i] = 0
$a = $a + 1
if $i = $c
return
; endif
; endif
;loop
EndFunction
|
|
Top
|
|
|
|
#182680 - 2007-11-15 01:56 AM
Re: KiXgolf - Printer Queue - Public Round
[Re: Allen]
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
allen, here is 154 of your code. that means, I've shortened everyones code and clock is 3AM. guys, it's your turn 
function a($,$p)
dim $i
for $i=9 to 1 step -1
while instr($,$i) | $p=0 & $i=split($)[$p]
$p=iif($p=0,($^)/2,$p-1)
$a=$a+1*$/$i
$=right($,-2) + iif($i>$," " + 1*$,"")
endfunction
and Jens, np.
Edited by Lonkero (2007-11-15 01:57 AM)
_________________________
!download KiXnet
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 756 anonymous users online.
|
|
|