|
|
|||||||
============= The Challenge: Printer Queue ============= The only printer in the computer science students' union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to get a single page of output. Because some jobs are more important than others, the Hacker General has invented and implemented a simple priority system for the print job queue. Now, each job is assigned a priority between 1 and 9 (with 9 being the highest priority, and 1 being the lowest), and the printer operates as follows.
In this way, all those important muffin recipes that the Hacker General is printing get printed very quickly. Of course, those annoying term papers that others are printing may have to wait for quite some time to get printed, but that's life. Your problem with the new policy is that it has become quite tricky to determine when your print job will actually be completed. You decide to write a program to figure this out. The program will be given the current queue (as a list of priorities) as well as the position of your job in the queue, and must then calculate how long it will take until your job is printed, assuming that no additional jobs will be added to the queue. To simplify matters, we assume that printing a job always takes exactly one minute, and that adding and removing jobs from the queue is instantaneous. This, if the queue look like "1 2 3 4" and your job is in postion 2, then it'll take 2 minutes until your job is printed. In case of the queue being "1 1 9 1 1 1" and your job in position 0 (the first slot), it'll then take 5 minutes as your job and the job after you move all the way back in the queue in order to make room for the higher-priority job in slot 2. A download is available at http://s91376351.onlinehome.us/kixtart/kixgolf_pq.zip ============= Inputs & Outputs ============= Input: One string with n space-separated integers (1<= n <= 100) in the range 1 to 9, giving the priorities of the jobs in the queue. The first integer gives the priority of the first job, the second integer the priority of the second job, and so on. One integer (0<= m <= n-1) denoting the position of your job in the queue. Output: A single integer; the number of minutes until your job is completely printed, assuming that no additional print jobs will arrive. ======= Scoring ======= The solution must pass all tests in order for it's KiXgolf Score to be considered. When posting KiXtart Golf Scores, please include the KIXGOLF_*.TXT file that is created in the script directory. It contains some basic information about the computer that the script is run on and the resulting scores. ============ Test program ============ Test cases are provided to help screen entries and to provide the Golf Score. Any script that passes the test cases can be submitted. If you are surprised that your solution passed the test cases, please submit it anyway! That will help me identify bugs in the test program. ================================================================ KiXtart GOLF - How To Play ================================================================ Most importantly, anybody can play, no age restrictions, no penalties, no handicap! The object in "real" golf is to hit the ball in the hole in the fewest strokes. The object in KiXtart Golf is to get from input (tee) to target (hole) in the fewest keystrokes. Example: How many positive elements are in array $a? Array $a could be of structure $a=[1, 2 ,-3, 4, -5, -7, 8, 9] One approach: Code: for $b=0 to ubound($a) if $a[$b]>0 $c=$c+1 endif next for a score of 45. Another solution is: Code: DO $b=$b+1 if $a[$b]>0 $c=$c+1 endif UNTIL $b>(UBOUND($a)+1) for a score of 53. Better approach: Code sample 1 ================================================================ KiXtart GOLF - The Rules ================================================================ 1) The goal of KiXtart Golf is to score the lowest strokes. 2) Strokes are all characters in a piece of code except whitespace characters, unless the whitespace character is necessary for the line of code to work. Therefore, carriage returns and line feeds do not count or spaces in between the '=' sign when assigning variables, e.g. '$a = $b' scores 5. 3) Code can be constructed any way you like, as long as it does not generate syntax or other errors when running the script in KiXtart. 4) The final solution MUST pass all test scripts that are part of the KiXtart golf challenge. 7) During the private coding phase, no code is allowed to be posted. Violations result in disqualification of said player. 8) During the public coding phase, code should be posted, reused, and borrowed from other players. 9) The test script contains the official KiXgolf scoring engine 10) Only the person posting a particular score will be recognized for the score, unless the KiXtart Golf Challenge organizer or another delegate posts code on behalf of a player 11) KiXtart Golf (a.k.a KiXgolf) codes must be written inside the KiXgolf UDF collection tags, ';!' and ';!;!' and must be eclosed by the FUNCTION commands 12) Parameter names of the UDF's can be changed and additional optional parameters can be added. 13) Additional helper UDFs can be written as long as they reside inside the ';!' and ';!;!' tags. 14) The use of '$' as a variable is allowed. 15) The UDF layout is up to coder. 16) The UDF is expected to finish in a reasonable time, that is, on modern computers inside 1 hour timeframe. 17) You can submit scores as often as you want. 18) If you reach leading score, you are obligated to post your score immediately so others can try to compete with you. 19) The UDF may only use the KiXtart/KiXforms commands/functions/macros, no other code fragments are allowed. 20) Calls to COM components that are part of a standard default Windows installation are allowed. 21) The use of the KiXforms DLL is also permitted as the KiXforms DLL can now be considered an integral part of KiXtart scripting. 22) Calls to other executables, as long as they are part of a standard default Windows installation are allowed. 23) The UDF should be self-contained (except for any I/O mentioned in the challenge). In particular, you may not do things like fetching extra data from a remote site or file. 24) You may assume ASCII as character set. 25) You may use block comments as the KiXgolf Scoring Engine now supports block comments. 26) You are allowed to only use publicly available versions of KiXtart and KiXforms, private builds or alpha builds are NOT allowed. 27) Your submitted score must include the result print of the KiXgolf test-engine. 28) The SETOPTION() parameters in the KiXgolf script may not be modified and will govern the script behavior. SETOPTION() parameters may change depending on the particular needs of the KiXgolf challenge. 29) Tokenizing the UDF, script, or portions thereof is not allowed. 30) If something is not explicitly denied by the rules, it's allowed. 31) If Confusion arises, arranger of the KiXgolf round has the final say. 32) Additional test cases can be added during the private round by submitting a proposal for a new test case to the BBS. The proposed test case becomes official once it has been added to the existing test cases and the KiXgolf package has been reposted for download. If new test cases are added within 12 hours of private round end the private round will extend by an additional 24 hours. The public round will then start one day later and also end one day later. Not additional test cases will be added during the public round. ================================================================ KiXtart GOLF - The Duration of the Competition ================================================================ 1) Private coding phase: From date/time of posting the tournament challenge to November 14, 6pm EST (BBS+6 time) 2) Public coding phase: From November 14, 6pm EST (BBS+6 time) to November 18, 6pm EST (BBS+6 time) 3) Final results: November 19, 11pm EST (BBS+6 time) You will need the complete package from http://s91376351.onlinehome.us/kixtart/kixgolf_pq.zip. |
||||||||
|
|
|||||||
Please see the following relevant bug report: 4.60 bug: Function |
||||||||
|
|
|||||||
I believe there is a bug in the scoring engine... this if $iOutput=$iResult and vartype($iOutput)=3 should be if $iOutput=$sResult and vartype($sResult)=3 |
||||||||
|
|
|||||||
k well, based on the fixed engine, looks like im first on the leader board: Your solution passed all tests KiXtart KiXtart Version = 4.60 Release Candidate 1 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/09 23:34:53.738 Processing End = 2007/11/09 23:34:59.987 Duration = 0 KiXGolf Score = 275 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
KiXGolf Score = 231 |
||||||||
|
|
|||||||
GAH! So Close! Gotta go to bed... try to play tomorrow evening. Quote: Your solution failed 4 of 100 tests. |
||||||||
|
|
|||||||
Last minute brain fart... Now I can sleep peacefully. I will clean up this ugly beast tomorrow. Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 02:28:14.993 Processing End = 2007/11/10 02:28:16.452 Duration = 0000/00/00 00:00:01.458 KiXGolf Score = 503 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
I've posted an updated scoring script to correct the typos in the results validation line. I've also changed the two variable names in the KiXgolf UDF due to the potential bug of having a parameter with the same name as the function name. You're free to adjust the parameter variable names to your liking. And congrats to Shawn for posting the first score, darn good opening shot |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 10:19:13.592 Processing End = 2007/11/10 10:19:14.559 Duration = 0000/00/00 00:00:00.967 KiXGolf Score = 409 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
There is no printer KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 16:38:50.531 Processing End = 2007/11/10 16:38:56.197 Duration = 0000/00/00 00:00:05.665 KiXGolf Score = 218 Thank you for participating in KiXtart Golf! Nice to see you back on the green, Shawn! |
||||||||
|
|
|||||||
KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 16:48:13.059 Processing End = 2007/11/10 16:48:18.584 Duration = 0000/00/00 00:00:05.525 KiXGolf Score = 191 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Show off! |
||||||||
|
|
|||||||
KiXGolf Score = 191 |
||||||||
|
|
|||||||
KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 17:02:17.964 Processing End = 2007/11/10 17:02:23.457 Duration = 0000/00/00 00:00:05.493 KiXGolf Score = 179 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 17:17:59.338 Processing End = 2007/11/10 17:18:04.413 Duration = 0000/00/00 00:00:05.074 KiXGolf Score = 166 |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 18:26:19.711 Processing End = 2007/11/10 18:26:25.810 Duration = 0000/00/00 00:00:06.099 KiXGolf Score = 161 |
||||||||
|
|
|||||||
A page out of Rogers handbook: There is no printer,... Your solution failed 100 of 100 tests. KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 12:49:19.929 Processing End = 2007/11/10 12:49:20.197 Duration = 0000/00/00 00:00:00.268 KiXGolf Score = 27 Thank you for participating in KiXtart Golf! Press any key to continue... Ha! Made you look |
||||||||
|
|
|||||||
Damn Sarg! Your code must be on steroids or something. Looks like you are leading the pack with a 130 on Shawn and almost 250 on Allen. Benny doesn't even count. Anyone can make a 27 script failing all tests |
||||||||
|
|
|||||||
My opening score I know it is not there yet, but just wanted to get a post in for participation points Your solution failed 56 of 100 tests. KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 14:33:41.578 Processing End = 2007/11/10 14:33:42.250 Duration = 0000/00/00 00:00:00.671 KiXGolf Score = 135 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
I'm only a measly 30 ahead of shawn, Mart. He posted a 191 right after mine besides, I'm sure that Jooel will come around soon and leave us all in his dust again |
||||||||
|
|
|||||||
alrighty... done with football game.... now to shave a few hundred strokes... no problem. |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 20:57:06.836 Processing End = 2007/11/10 20:57:07.760 Duration = 0000/00/00 00:00:00.923 KiXGolf Score = 395 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 21:03:43.211 Processing End = 2007/11/10 21:03:44.116 Duration = 0000/00/00 00:00:00.904 KiXGolf Score = 376 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 21:12:47.485 Processing End = 2007/11/10 21:12:48.374 Duration = 0000/00/00 00:00:00.888 KiXGolf Score = 321 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
well there's a hundred... wonder if the next hundred will go as quickly. Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 21:36:20.261 Processing End = 2007/11/10 21:36:20.636 Duration = 0000/00/00 00:00:00.375 KiXGolf Score = 296 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 21:57:53.023 Processing End = 2007/11/10 21:57:53.397 Duration = 0000/00/00 00:00:00.373 KiXGolf Score = 283 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 22:15:54.831 Processing End = 2007/11/10 22:15:55.174 Duration = 0000/00/00 00:00:00.342 KiXGolf Score = 210 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Jeez, what happened in that last improvement? Did you realize that there's no printer? |
||||||||
|
|
|||||||
Shawn... knocking on your door... Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/10 23:53:30.728 Processing End = 2007/11/10 23:53:31.115 Duration = 0000/00/00 00:00:00.387 KiXGolf Score = 192 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Nice catch-up, Allen! |
||||||||
|
|
|||||||
Good morning ... Y'are up and running eh? K, downloaded the package and start to have a look ... whoa below 200 ? My god |
||||||||
|
|
|||||||
K, this seems fairly simple ... when is the deadline ? We celebrated the 9th birthday of Jan (my only son) yesterday, and today we might just have a family afernoon; cold outside, so we may just start to build that Revell kit of a Boeing 747 scale 1:380 |
||||||||
|
|
|||||||
Welcome to the green, Jochen! Deadline is wednesday midnight (for us Europeans) unless someone pulls a new test-case out of their hat. |
||||||||
|
|
|||||||
Still some ways to go but ... KiXGolf Score = 182 |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 13:23:42.340 Processing End = 2007/11/11 13:23:43.105 Duration = 0000/00/00 00:00:00.765 KiXGolf Score = 184 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
first promising code Your solution failed 81 of 100 tests. KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 19:48:20.562 Processing End = 2007/11/11 19:48:23.375 Duration = 0000/00/00 00:00:02.812 KiXGolf Score = 216 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
hmm, I can fail 81 of 100 tests even with a score of 211 ... groovy |
||||||||
|
|
|||||||
And we have a tee off !!! Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 20:17:06.621 Processing End = 2007/11/11 20:17:09.793 Duration = 0000/00/00 00:00:03.172 KiXGolf Score = 210 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 20:28:37.246 Processing End = 2007/11/11 20:28:40.371 Duration = 0000/00/00 00:00:03.125 KiXGolf Score = 208 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 20:49:01.949 Processing End = 2007/11/11 20:49:05.059 Duration = 0000/00/00 00:00:03.110 KiXGolf Score = 206 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Best I can get is failed 56 of 100, I don't have any hair left to pull out and need to walk away for awhile and see if my mush of a brain can figure out how to track my position in the que.. UGH |
||||||||
|
|
|||||||
Current standings:
Gargoyle has posted a non-working score 135, and Benny has posted a non-working score of 27. |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 21:16:39.059 Processing End = 2007/11/11 21:16:42.184 Duration = 0000/00/00 00:00:03.125 KiXGolf Score = 204 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
|
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 22:38:46.434 Processing End = 2007/11/11 22:38:49.621 Duration = 0000/00/00 00:00:03.187 KiXGolf Score = 199 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 22:47:18.934 Processing End = 2007/11/11 22:47:22.106 Duration = 0000/00/00 00:00:03.172 KiXGolf Score = 197 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 23:10:13.809 Processing End = 2007/11/11 23:10:16.777 Duration = 0000/00/00 00:00:02.968 KiXGolf Score = 196 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
OMFG! GOTO!!!1!! Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 23:30:17.699 Processing End = 2007/11/11 23:30:19.543 Duration = 0000/00/00 00:00:01.844 KiXGolf Score = 191 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
and... Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 23:36:25.527 Processing End = 2007/11/11 23:36:27.324 Duration = 0000/00/00 00:00:01.796 KiXGolf Score = 186 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Dang! You guys are killing me! |
||||||||
|
|
|||||||
ok, got to get on the course: Your solution passed all tests KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 18:04:16.451 Processing End = 2007/11/11 18:04:17.297 Duration = 0000/00/00 00:00:00.845 KiXGolf Score = 225 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Look Out Jochen! Fat Guy coming thru! Your solution passed all tests KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 18:53:28.222 Processing End = 2007/11/11 18:53:29.049 Duration = 0000/00/00 00:00:00.827 KiXGolf Score = 206 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
I think Roger is right, there is no Printer, its a Theoretical Particle Your solution passed all tests KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 19:06:01.395 Processing End = 2007/11/11 19:06:02.218 Duration = 0000/00/00 00:00:00.822 KiXGolf Score = 187 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Dang! I am Red HOT! Your solution passed all tests KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 19:10:22.161 Processing End = 2007/11/11 19:10:22.987 Duration = 0000/00/00 00:00:00.826 KiXGolf Score = 173 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Like a Firecracker, I fissile at first and then, BANG! I’m Done. That’s what my x said anyway. Your solution passed all tests KiXtart KiXtart Version = 4.60 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/11 20:01:32.876 Processing End = 2007/11/11 20:01:33.672 Duration = 0000/00/00 00:00:00.796 KiXGolf Score = 166 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Quote: Like a Firecracker, I fissile at first and then, BANG! I’m Done. That’s what my x said anyway. I resemble that remark. |
||||||||
|
|
|||||||
Wow Dale, nice acceleration... 166 will be hard to beat |
||||||||
|
|
|||||||
Damn Dale, nice sprint! I'm getting worried... I can't imagine that my 7 point lead will be enough to keep you behind me. I'll see if I can come up with another shorter approach today. |
||||||||
|
|
|||||||
hmm... this is silly comment but anyway... what is the $b and $c arguments in the udf? I think I've stated this previously, but imo, they should be documented without forcing ppl to guess. |
||||||||
|
|
|||||||
$b is the queue and $c is the position of 'your' document in the queue. Nice to have you on-board and good luck, Jooel! |
||||||||
|
|
|||||||
drill, I know, but I had to look into the test code in order to find out. that's not right. anyhow, here is my first entry.
|
||||||||
|
|
|||||||
and here second.
|
||||||||
|
|
|||||||
one more and now getting back to work.
|
||||||||
|
|
|||||||
Current standings, I think it's going to be an exiting week
|
||||||||
|
|
|||||||
hmm...
|
||||||||
|
|
|||||||
Beep! Beep! coming thru! Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/12 06:55:19.830 Processing End = 2007/11/12 06:55:20.236 Duration = 0000/00/00 00:00:00.405 KiXGolf Score = 159 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
make that 180.
|
||||||||
|
|
|||||||
Uh baby, shake me YEAH! Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/12 14:00:55.375 Processing End = 2007/11/12 14:00:58.562 Duration = 0000/00/00 00:00:03.186 KiXGolf Score = 181 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Oh yeah, note this as 179 Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/12 14:03:59.656 Processing End = 2007/11/12 14:04:02.968 Duration = 0000/00/00 00:00:03.311 KiXGolf Score = 179 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
and... Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/12 14:11:08.125 Processing End = 2007/11/12 14:11:11.187 Duration = 0000/00/00 00:00:03.061 KiXGolf Score = 178 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
LOOK OUT ROGER! We are gonna get run over! |
||||||||
|
|
|||||||
|
||||||||
|
|
|||||||
10-4 ... you guys (hopefully) gonna eat my dust |
||||||||
|
|
|||||||
oh btw ... LOL |
||||||||
|
|
|||||||
Hey! how did you get a picture of me in a golf cart? lol |
||||||||
|
|
|||||||
hmm...
|
||||||||
|
|
|||||||
make that...
|
||||||||
|
|
|||||||
hmm...
|
||||||||
|
|
|||||||
wtf? According to the picture you sit in my cart whilst I am driving ... how dare you pass me |
||||||||
|
|
|||||||
*Crawls out from under the cart and limps away...
btw, check that duration! |
||||||||
|
|
|||||||
|
||||||||
|
|
|||||||
The driver of the chasing cart takes back his seat Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/12 16:01:36.437 Processing End = 2007/11/12 16:01:39.125 Duration = 0000/00/00 00:00:02.688 KiXGolf Score = 171 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Originally Posted By: DrillSergeant btw, check that duration! It takes ages ... but still it is passing all tests |
||||||||
|
|
|||||||
|
||||||||
|
|
|||||||
Current score table anyone? Seems to be a lucky escape from under the cart for you sarge |
||||||||
|
|
|||||||
k, the first 6 places are damn close together Sarge 152 Benny 159 Jochen 171 Jooel 172 Shawn 182 Allen 184 |
||||||||
|
|
|||||||
Originally Posted By: Jochen Seems to be a lucky escape from under the cart for you sarge Nah, that bump on the head was just what I needed |
||||||||
|
|
|||||||
posted as UBBCode using pre tags But ... I got the message, I'll hold my mouth shut from now on |
||||||||
|
|
|||||||
|
||||||||
|
|
|||||||
I like the third place just fine...
|
||||||||
|
|
|||||||
I'm gettin' there...
|
||||||||
|
|
|||||||
huh... wicked.
|
||||||||
|
|
|||||||
YEAH!
|
||||||||
|
|
|||||||
Sarge 147 Jooel 158 Benny 159 Jochen 171 Shawn 182 Allen 184 |
||||||||
|
|
|||||||
How the heck did that happen? I turn my back for the day to get some work done and I am left sitting in the pitts. |
||||||||
|
|
|||||||
Excuse me.... I WAS in the pitts... Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/12 18:48:40.734 Processing End = 2007/11/12 18:48:41.536 Duration = 0000/00/00 00:00:00.801 KiXGolf Score = 178 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Jooel: Point taken on the lack of documentation for the input variables. |
||||||||
|
|
|||||||
great. thanks. |
||||||||
|
|
|||||||
hmm...
|
||||||||
|
|
|||||||
WOOOOOOOOOOOOT!
|
||||||||
|
|
|||||||
k, think that's all I can get squeezed before really waking up. |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 01:20:50.249 Processing End = 2007/11/13 01:20:51.060 Duration = 0000/00/00 00:00:00.811 KiXGolf Score = 177 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Sarge 147 Jooel 148 Benny 159 Jochen 171 Allen 177 Shawn 182 |
||||||||
|
|
|||||||
Crap, getting in 4th place overnight K, I'll just try the solution (different approach) I dreamed of this night Will see if this leads to long runtimes and shorter code |
||||||||
|
|
|||||||
k, finally there.
|
||||||||
|
|
|||||||
Jooel, you bastard! Ok... no worries... there's still time: http://www.timeanddate.com/counters/fullscreen.html?mode=a&year=2007&month=11&day=14&hour=6pm&p0=179 |
||||||||
|
|
|||||||
hmm... |
||||||||
|
|
|||||||
Bah, enough time to reinvent the toaster! It should be possible to beat that score... |
||||||||
|
|
|||||||
well, my code is so wicked, I can't come up with anything. so guess I will have some time of the case. |
||||||||
|
|
|||||||
well, well...
|
||||||||
|
|
|||||||
so, updating the standings:
|
||||||||
|
|
|||||||
btw, my code should work with priorities way higher than 9 or the usual 100. another observation... sarge, your code runs under minute! |
||||||||
|
|
|||||||
well, well, well... points AND speed
|
||||||||
|
|
|||||||
you guys stink! Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 06:49:13.008 Processing End = 2007/11/13 06:49:13.414 Duration = 0000/00/00 00:00:00.405 KiXGolf Score = 151 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Be vewee quite, I am hunting bunny wabbits. Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 07:15:58.585 Processing End = 2007/11/13 07:15:58.975 Duration = 0000/00/00 00:00:00.389 KiXGolf Score = 148 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
What's up, doc? |
||||||||
|
|
|||||||
not good. I'm totally stuck. |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 10:24:39.650 Processing End = 2007/11/13 10:24:40.430 Duration = 0000/00/00 00:00:00.779 KiXGolf Score = 174 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
AND... Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 10:30:11.618 Processing End = 2007/11/13 10:30:12.429 Duration = 0000/00/00 00:00:00.810 KiXGolf Score = 171 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Current standing:
|
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 10:41:03.963 Processing End = 2007/11/13 10:41:04.758 Duration = 0000/00/00 00:00:00.794 KiXGolf Score = 166 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Nice one Allen, now you're making Benny nervous and you made Jochen cry |
||||||||
|
|
|||||||
more... Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 10:43:23.922 Processing End = 2007/11/13 10:43:24.717 Duration = 0000/00/00 00:00:00.794 KiXGolf Score = 163 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
In the mean time I have Sarge's runtime (5.843 secs) but still a score 4 strokes higher than my best... but I have another day to get in 1st position Oh, and I don't cry ... I am not an EMO |
||||||||
|
|
|||||||
yehaa!
|
||||||||
|
|
|||||||
wicked... :p
|
||||||||
|
|
|||||||
so, pulling the list back together:
|
||||||||
|
|
|||||||
Hmmmm ... 1 day and one hour left, I am on 5th Place and have no clue how to get rid of my 177 score soon |
||||||||
|
|
|||||||
Nice one, Jooel! hmmm... 24 hours to shave > 4 points and I've got a busy IRL day tomorrow... I'm not going down without a fight, but I think I'm going to have to settle for the current score and hope to see midnight tomorrow as #2 |
||||||||
|
|
|||||||
slooooooowly decreeeaaasing my scoooore Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 23:15:51.453 Processing End = 2007/11/13 23:15:54.203 Duration = 0000/00/00 00:00:02.750 KiXGolf Score = 169 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 23:26:32.578 Processing End = 2007/11/13 23:26:35.343 Duration = 0000/00/00 00:00:02.764 KiXGolf Score = 167 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
drill, >2? why not >4 so you would get the lead? and jochen, nice to see you are not totally dead in the see. |
||||||||
|
|
|||||||
Originally Posted By: Lonkero drill, >2? why not >4 so you would get the lead? I read your post optimistic, I changed my previous post |
||||||||
|
|
|||||||
only 1 more left for Allen ... Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 23:50:45.968 Processing End = 2007/11/13 23:50:47.578 Duration = 0000/00/00 00:00:01.610 KiXGolf Score = 164 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
and equal to Allen, come on, take a seat in my cart Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 23:55:06.812 Processing End = 2007/11/13 23:55:08.421 Duration = 0000/00/00 00:00:01.608 KiXGolf Score = 163 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Damn son... slow down! Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 17:57:36.655 Processing End = 2007/11/13 17:57:37.458 Duration = 0000/00/00 00:00:00.802 KiXGolf Score = 161 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
whoops Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.kix KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/13 23:58:01.500 Processing End = 2007/11/13 23:58:04.281 Duration = 0000/00/00 00:00:02.781 KiXGolf Score = 161 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Jochen, is it possible we have the same code? |
||||||||
|
|
|||||||
most definitly not ... look at the runtimes |
||||||||
|
|
|||||||
well, that doesn't tell that much. 1s for the other and 2s for the other. that can be explained simply by slower machine for the second one |
||||||||
|
|
|||||||
my rig is quite fast ... |
||||||||
|
|
|||||||
Allen, I think that your code and mine is similar. So you could knock off a few more. |
||||||||
|
|
|||||||
My eyes have officially crossed. I see things I might be able to change, but every time I do, I get no where. Looking forward to seeing yours, especially if they are similar. |
||||||||
|
|
|||||||
I bet Jochen's is crazy! 11th dimension stuff, check out those run times. |
||||||||
|
|
|||||||
dunno... we have 100 tests, so if it's just a bit slower on the longer ones it easily counts for seconds. and that extra time can be easily accomplished with weird conversions like: int(int(2)+int(3)) instead of the usual: 2+3 |
||||||||
|
|
|||||||
pffft... these ones took a while... I wonder if I can find 2 more...
|
||||||||
|
|
|||||||
damn, you were supposed to be busy! |
||||||||
|
|
|||||||
What happened to Shawn? He opened and then left. |
||||||||
|
|
|||||||
was wondering the same. have seen him lurking a lot though |
||||||||
|
|
|||||||
Gawd ... this ... bleeding code ... won't get any .... SHORTER !!! |
||||||||
|
|
|||||||
I'm still lurkin but haven't had much time since Sunday. Well, at least I got on the board this time - got my code down to 171 or so. But just cheering you guys on until the public round. |
||||||||
|
|
|||||||
Whoa Shawn, post the results from that run with 171 ... maybe there is a Gargoyle only waiting to post that 170 score to leave you behind |
||||||||
|
|
|||||||
with 8 hours to go, here's the current standings. if top5 gets ranking points, only Shawn will be left out of that carneval :P
|
||||||||
|
|
|||||||
Originally Posted By: Shawn I'm still lurkin but haven't had much time since Sunday. Well, at least I got on the board this time - got my code down to 171 or so. But just cheering you guys on until the public round. Why not post the results? You'll still be sixth but with a better score compared to the 182 you have listed now. |
||||||||
|
|
|||||||
k, still got 8 hours or whatever ... hopefully improve ... KiXGolf Score = 171 |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/14 10:02:30.463 Processing End = 2007/11/14 10:02:31.257 Duration = 0000/00/00 00:00:00.793 KiXGolf Score = 158 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
I hope that I will stay 2nd place because I don't think I'm going to try any more. I got myself an early christmas present, and I'm going to play with that all evening |
||||||||
|
|
|||||||
Sarg, dude! You got one of these sweet gadgets. I've been looking at this but decided to get the Nokia 6300 instead. A great phone but now I want E-mail and stuff on my phone! I want it, I want it, I want it! Regrets, regrets! Oh man I think I’ll never get over this one |
||||||||
|
|
|||||||
nice. |
||||||||
|
|
|||||||
mart, 6300? why oh why? the e-series phones are way cheap nowadays, so there is no excuse to buy anything else. imo. |
||||||||
|
|
|||||||
Yeah I know, but the only one widely available here at the time I needed to extend my subscription was the E65 and that one is damn ugly and felt fragile. I could also get the N73 but we have a number of them at work and they have all broken down more then once in the past 5 months. Nobody wants that. The 6300 has a stainless cover and blue lights. Stainless combined with the blue lights and the (expected) durability of the phone convinced me to get it. That’s the pain with all electric devices, once you get one the next day they are old and the next model is released. Crying myself to sleep every night |
||||||||
|
|
|||||||
Originally Posted By: Mart I've been looking at this but decided to get the Nokia 6300 instead. I've looked at nokia's too, but my ubernerdy collegues convinced me to get this one I got it with a two-year subscription, so I hope it won't be antique after 1.5 years... |
||||||||
|
|
|||||||
lol. I would most likely break it before that. my last smartphone was iPaq and it lasted for 2 weeks |
||||||||
|
|
|||||||
Originally Posted By: Lonkero lol. I would most likely break it before that. my last smartphone was iPaq and it lasted for 2 weeks That's why I've also insured it for 6 euro per month. It's a bit much, but if it gets broken (in any way) I get a new one. Without subscription it costs about 650 Euro... |
||||||||
|
|
|||||||
6e is not much, all things considered... if you get with new phone every 3-6 months, I think it's money well spent |
||||||||
|
|
|||||||
I think you guys have too much money if you are buying that stuff, and work should pay for any thing you need to do your job. |
||||||||
|
|
|||||||
Didn't buy it. They had a selection of phones to choose from when I renewed my subscription. All free. This stuff is expensive indeed. Way to expensive imho. |
||||||||
|
|
|||||||
nah. everything costs nowadays! when I was still in jyväskylä, I could buy milk with 2-4 cents/litre. now it's 1-1,55e/litre! and that's only 3 years ago! |
||||||||
|
|
|||||||
whilst waiting for someone to post, I decided to watch some christmas gift pointers for the children: http://www.tomsgames.com/us/site/flash_videos/more_crysis_jackassery.html |
||||||||
|
|
|||||||
Need to hit that 161 to be in contention eh. |
||||||||
|
|
|||||||
my interpretion is, that you would need to get down to 160 as you would be still sixth with 161 cause you would be the last one to join that group. but, Jens might give you extra point out of pity anyways. |
||||||||
|
|
|||||||
hmmm, this site is not really nice to windows mobile PDA's. |
||||||||
|
|
|||||||
heh. I've viewed it with my 6680 and I bet the experience with your htc is waaaaay better. |
||||||||
|
|
|||||||
I gave up, I could sort all day long, but never could keep track of my own job. Speaking of jobs, it is all I can do right now to find time visit the site much less play, tried to knock it out in the first weekend, as I knew with our data center redesign (moving everything all new cabling etc...) coming up this weekend, that was going to be it for me.... |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_pq.KIX KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = Printer Queue Processing Start = 2007/11/14 17:36:59.583 Processing End = 2007/11/14 17:37:00.378 Duration = 0000/00/00 00:00:00.794 KiXGolf Score = 155 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Hey... that clock is ticking up now... I guess that means it's over. Good fun. |
||||||||
|
|
|||||||
yep. if the given time was the same we have been staring, time is up. thus final order would look like:
This thread is now closed. Continue competition and discussion in the public round thread: http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=182662 |