#178888 - 2007-08-08 01:59 PM
Re: KiXgolf: Top Secret
[Re: DrillSergeant]
|
DrillSergeant
MM club member
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
[Test 10] Blocksize=100 Permutation=15,99,7,12,51,39,62,25,34,59,69,92,31,58,40,16,57,52,18,70,100,6,47,20,74,35,83,77,41,66, 80,42,33,36,73,29,45,56,27,32,2,98,28,95,65,4,79,46,11,63,38,13,93,67,88,22,96,76,89,85,19,84,61,43,97,53,86, 94,60,37,50,24,48,23,78,5,87,68,14,1,49,64,9,91,81,17,54,82,90,44,10,30,21,75,3,55,71,8,26,72
Input =Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate -- we can not consecrate -- we can not hallow -- this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us -- that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion -- that we here highly resolve that these dead shall not have died in vain -- that this nation, under God, shall have a new birth of freedom -- and that government of the people, by the people, for the people, shall not perish from the earth.
Output=vaod hutor ntn tiget iyitc hao sne hwetebc frnuhoc reerv tn aosd nrsdctieL, n fis bdertg, oaiseaeFn ne adnciyo, aar nuooronto eo eeg leivtedqiee nirh whr ahs utn artaaog ecdnn. tao iw prd sncrtie tt t ealon haner lea, tteiiea eragogw hNor attalp, mw cii croaod ge maanenevf cte dd crtgtteea, liu oetn ddoana. ro tlo etv nd f eeeWe nemhtr-nasWd ha alna ebn. ow ieac dsca oy tiodehar o wltatav ir gaae hfelo, he a iihcr nesnhar riets nIi attnh pfv lgdt thni oefio mevge soaa piit aseila thtto ollt. ee st ftgnetrtct ueetssh ang ddohnr tlte io nsodaw te ahon. ten, ea i taoiet epcwc, op ceB aen wwdaraec -- ts dnt lnf annroruieo -- eg sir hcu dwglec -- egaa wvhane. eTt ooret aor, deownn ils reih, dnt slbtsodre coro, arrh uehadprvdgv ua, alo rotgn hov dhep oiibf ae etm dl rcweeil. lbv enemd rsie uahlro hten, amr notr enodooia thwe tr oIn dise, hyl et bfa dtugw tatwri errt cTrt wyt eehe. lg eh rte fe eva ruwcth, hyetnr, hk ot dieeeofvf ohie tr dsc trtcevfeth rhet aunea aorb ayn nwsdeh oidd elog hswo nlu th sbigh dhhihiae. sa to irueoo rke fe te nb osar hetdhaaot th has bidte cnhs nkfsgretw rceeee de -- tria irea deeor dfuImte aron et arte sigmhdtae toahtwge tt hdet fsawa ols raeil tlay vehf oie ddce nehu tittthe fs htousose -- ulhv ee rlog vvahem ooaycrr htnt eedee ihhi lnvhn tht bets wdee ai delh -- vnie hefg raoahd, ntnsp tpf, atsah uehr n iet tnnrr Go vmeinlt -- ana leed dlotfodevo oh iad haooam, te frh rtohpp, roi mte snelpy, lhaef ole hhstee rbhp eel optoa.
ok, it's outside the requirements... but it still works!
The permutation should be on one line, I've split it into three lines because it would have mucked up the layout.
Edited by DrillSergeant (2007-08-08 02:03 PM)
_________________________
The Code is out there
|
Top
|
|
|
|
#178909 - 2007-08-08 03:40 PM
Re: KiXgolf: Top Secret
[Re: Jochen]
|
DrillSergeant
MM club member
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
Current standing:
DrillSergeant 369
Jooel/Jochen 421
Sixdoubleo 461
Howard 473
The scores are based on test case 1-4. Cases 5 - 9 are not (yet) official tests. Case 10 is outside the requirements, it's just for fun.
Test cases 1-10:
[Test 1] Blocksize=5 Permutation=3,5,2,1,4 Input =Collegiate Programming Contest Output=leoClaeigt orrPgmnmaio tCgntse [Test 2] Blocksize=5 Permutation=3,5,2,1,4 Input =G, ,B Output=B, ,G [Test 3] Blocksize=5 Permutation=3,5,2,1,4 Input ="ACM" Output="MCA" [Test 4] Blocksize=5 Permutation=3,5,2,1,4 Input =Springfield, MA Output=rnpSiilfgeA, Md [Test 5] Blocksize=5 Permutation=5,3,4,2,1 Input =Springfield, MA Output=nripSliefgA, Md [Test 6] Blocksize=10 Permutation=3,5,2,1,4,6,10,9,8,7 Input =This is a very long text, something I hope will work Output=iihT ss r evao glyn tstx, eehmotihI g neip owlr owlk [Test 7] Blocksize=7 Permutation=6,3,5,1,7,2,4 Input =And it's 1, 2, 3, what are we fightin' for? Output=sdt Aw'n 1, 2, 3, ietr hwa at iheifgo' nfr? [Test 8] Blocksize=2 Permutation=2,1 Input = A, Output= A, [Test 9] Blocksize=4 Permutation=3,1,4,2 Input =Is a circonflex (^) considered punctuation? Output=aI c sciorlnefo (^) xncdseidrp ecutntuiaon? [Test 10] Blocksize=100 Permutation=15,99,7,12,51,39,62,25,34,59,69,92,31,58,40,16,57,52,18,70,100,6,47,20,74,35,83,77,41, 66,80,42,33,36,73,29,45,56,27,32,2,98,28,95,65,4,79,46,11,63,38,13,93,67,88,22,96,76,89,85,19,84,61,43,97,53,86, 94,60,37,50,24,48,23,78,5,87,68,14,1,49,64,9,91,81,17,54,82,90,44,10,30,21,75,3,55,71,8,26,72
Input =Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate -- we can not consecrate -- we can not hallow -- this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us -- that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion -- that we here highly resolve that these dead shall not have died in vain -- that this nation, under God, shall have a new birth of freedom -- and that government of the people, by the people, for the people, shall not perish from the earth.
Output=vaod hutor ntn tiget iyitc hao sne hwetebc frnuhoc reerv tn aosd nrsdctieL, n fis bdertg, oaiseaeFn ne adnciyo, aar nuooronto eo eeg leivtedqiee nirh whr ahs utn artaaog ecdnn. tao iw prd sncrtie tt t ealon haner lea, tteiiea eragogw hNor attalp, mw cii croaod ge maanenevf cte dd crtgtteea, liu oetn ddoana. ro tlo etv nd f eeeWe nemhtr-nasWd ha alna ebn. ow ieac dsca oy tiodehar o wltatav ir gaae hfelo, he a iihcr nesnhar riets nIi attnh pfv lgdt thni oefio mevge soaa piit aseila thtto ollt. ee st ftgnetrtct ueetssh ang ddohnr tlte io nsodaw te ahon. ten, ea i taoiet epcwc, op ceB aen wwdaraec -- ts dnt lnf annroruieo -- eg sir hcu dwglec -- egaa wvhane. eTt ooret aor, deownn ils reih, dnt slbtsodre coro, arrh uehadprvdgv ua, alo rotgn hov dhep oiibf ae etm dl rcweeil. lbv enemd rsie uahlro hten, amr notr enodooia thwe tr oIn dise, hyl et bfa dtugw tatwri errt cTrt wyt eehe. lg eh rte fe eva ruwcth, hyetnr, hk ot dieeeofvf ohie tr dsc trtcevfeth rhet aunea aorb ayn nwsdeh oidd elog hswo nlu th sbigh dhhihiae. sa to irueoo rke fe te nb osar hetdhaaot th has bidte cnhs nkfsgretw rceeee de -- tria irea deeor dfuImte aron et arte sigmhdtae toahtwge tt hdet fsawa ols raeil tlay vehf oie ddce nehu tittthe fs htousose -- ulhv ee rlog vvahem ooaycrr htnt eedee ihhi lnvhn tht bets wdee ai delh -- vnie hefg raoahd, ntnsp tpf, atsah uehr n iet tnnrr Go vmeinlt -- ana leed dlotfodevo oh iad haooam, te frh rtohpp, roi mte snelpy, lhaef ole hhstee rbhp eel optoa.
* Permutation of case 10 should be on one line, it's divided in three segments to preserve html layout
Edited by DrillSergeant (2007-08-08 03:49 PM) Edit Reason: corrected howard's score
_________________________
The Code is out there
|
Top
|
|
|
|
#178934 - 2007-08-08 07:52 PM
Re: KiXgolf: Top Secret
[Re: DrillSergeant]
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I take the failures of #7 and #10 as a personal failure to author proper and robust code. My design should have been able to accomodate these cases. I need to first validate the INI file test data in case it is not properly constructed. Secondly I need to fix the code.
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 700 anonymous users online.
|
|
|