Decimation

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Decimate the text.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

To 'decimate'... I used to think it meant just to wipe out,
cause horrible damage, destroy... it actually means to kill
by a percentage of ten, one out of every ten must die...
and that's exactly what they did to us.

Sample output:

To 'decimte'... I sed to thnk it meat just towipe out,
ause horrble damag, destroy.. it actally mean to kill
b a percenage of te, one outof every en must de...
and tat's exacly what tey did tous.

Sample input:_

The earliest documented decimation occurred in 471 BC
during the Roman Republic's early wars against the Volsci
and is recorded by Livy. The practice was revived by
Crassus in 71 BC during the Third Servile War against
Spartacus, and some historical sources attribute part of
Crassus' success to it. Julius Caesar is often reported as
having used the practice on the 9th Legion during the war
against Pompey, but this has been disproved.

Polybius gives one of the first descriptions of the practice
in the early 3rd century BC:

If ever these same things happen to occur among a large
group of men... the officers reject the idea of bludgeoning
or slaughtering all the men involved [as is the case with a
small group or an individual]. Instead they find a solution
for the situation which chooses by a lottery system
sometimes five, sometimes eight, sometimes twenty of these
men, always calculating the number in this group with
reference to the whole unit of offenders so that this group
forms one-tenth of all those guilty of cowardice. And these
men who are chosen by lot are bludgeoned mercilessly in the
manner described above.

Plutarch describes the process in his life of Antony. After
a defeat in Media:

Antony was furious and employed the punishment known as
'decimation' on those who had lost their nerve. What he did
was divide the whole lot of them into groups of ten, and
then he killed one from each group, who was chosen by lot;
the rest, on his orders were given barley rations instead of
wheat.

Decimation was still being practiced during the time of the
Roman Empire, although it was very uncommon. Suetonius
records that it was used for the last time by Emperor
Augustus in 17 BC while Tacitus records that Lucius Apronius
used decimation to punish a full cohort of the III Augusta
after their defeat by Tacfarinas in AD 20. G.R. Watson notes
that "its appeal was to those obsessed with nimio amore
antiqui moris" -- that is, an excessive love for ancient
customs -- and notes, "Decimation itself, however, was
ultimately doomed, for though the army might be prepared to
assist in the execution of innocent slaves, professional
soldiers could hardly be expected to cooperate in the
indiscriminate execution of their own comrades."

A legend suggests that the Theban Legion was decimated in
the third century AD. The Legion had refused, to a man, to
accede to an order of the Emperor, and the process was
repeated until none were left. They became known as the
Martyrs of Agaunum.

Byzantine Emperor Maurice forbade in his Strategikon the
decimatio and other brutal punishments. According to him,
punishments where the rank and file see their comrades dying
by the hands of their own brothers-in-arms could lead to
collapse of morale. Moreover, it could seriously deplete the
manpower of the fighting unit.

Sample output:

The earlist documeted decimtion occured in 47 BC
duringthe RomanRepublic' early was againstthe Volsc
and is reorded by ivy. The ractice ws revivedby
Crassusin 71 BC uring theThird Serile War aainst
Sparacus, andsome histrical souces attriute part f
Crassus'success t it. Julis Caesar s often rported as
aving use the pracice on th 9th Legin during he war
aganst Pompe, but thi has beendisproved

Polybius ives one f the firt descripions of te practic
in the ealy 3rd cetury BC:

I ever thee same thngs happe to occuramong a lrge
group f men... he offices reject he idea o bludgeonng
or slauhtering al the meninvolved as is thecase witha
small grup or an ndividual. Insteadthey finda solutio
for the stuation wich chooss by a lotery systm
sometime five, soetimes eiht, sometmes twent of these
en, alway calculatng the nuber in ths group wth
referene to the hole unitof offendrs so tha this grop
forms on-tenth ofall thoseguilty ofcowardice And thes
men who ae chosen y lot arebludgeone mercilesly in the
anner desribed aboe.

Plutarc describe the procss in hislife of Atony. Aftr
a defeatin Media:

ntony wasfurious ad employe the punihment knon as
'deciation' onthose whohad lost heir nerv. What hedid
was diide the wole lot o them int groups o ten, and
hen he kiled one fom each goup, who as chosenby lot;
th rest, onhis order were givn barley ations intead of
what.

Decimaion was sill beingpracticedduring th time of he
Roman Epire, altough it ws very unommon. Sutonius
recrds that t was use for the ast time y Emperor
ugustus i 17 BC whle Tacitu records hat Luciu Apronius
sed decimtion to pnish a ful cohort f the IIIAugusta
afer their efeat by acfarinasin AD 20.G.R. Watsn notes
tht "its apeal was t those obessed wit nimio amre
antiquimoris" --that is, n excessie love fo ancient
cstoms -- nd notes,"Decimatin itself,however, as
ultimatly doomed for thouh the arm might beprepared o
assist i the exection of inocent slves, profssional
sodiers coud hardly e expecte to coopeate in th
indiscrimnate exection of teir own cmrades."

Alegend sugests tha the Thebn Legion as decimaed in
the hird centry AD. Th Legion hd refused to a man to
accedeto an ordr of the mperor, ad the proess was
reeated untl none wee left. Tey becameknown as he
Martyrsof Agaunu.

Byzantin Emperor aurice fobade in hs Strategkon the
deimatio an other brtal punisments. Acording tohim,
punisments whee the ran and filesee theircomrades ying
by th hands oftheir ownbrothers-n-arms cold lead t
collapse f morale.Moreover,it could eriously eplete th
manpower f the figting unit

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid340.02312013/03/29 03:59:330B / 12B / 18B
2clock340.02502013/03/29 09:33:170B / 12B / 18B
3teebee340.03122013/03/29 23:32:110B / 12B / 18B

Perl _

RankUserSizeTimeDateStatistics
1teebee270.02222013/03/29 05:54:280B / 10B / 14B
2tails270.02332013/03/29 20:42:490B / 10B / 14B
3ninjalj270.02402013/04/06 00:10:300B / 10B / 14B
4whio270.02482013/04/09 07:45:460B / 10B / 14B
5leonid290.02242013/03/29 05:01:270B / 10B / 16B
6brx300.02572013/04/03 17:36:070B / 11B / 17B
7BioFALSE890.02762013/03/29 16:24:150B / 39B / 50B

Python _

RankUserSizeTimeDateStatistics
1leonid630.07762013/03/29 04:02:090B / 35B / 25B
2clock630.05622013/03/30 00:27:540B / 34B / 26B
3teebee630.06712013/03/30 09:24:340B / 34B / 26B

PHP _

RankUserSizeTimeDateStatistics
1teebee480.08812013/03/31 10:01:291B / 21B / 26B
2clock490.06302013/04/02 22:07:201B / 22B / 26B

Io _

RankUserSizeTimeDateStatistics
1teebee750.18062013/03/30 08:09:390B / 55B / 16B

JavaScript _

RankUserSizeTimeDateStatistics
1clock620.05642013/03/29 09:39:220B / 37B / 23B
2Shmiddty640.03432013/03/29 05:37:380B / 39B / 25B

Xtal _

RankUserSizeTimeDateStatistics
1teebee680.17042013/03/30 22:50:070B / 35B / 31B
2clock680.08172013/03/30 23:08:590B / 35B / 31B

BASIC _

RankUserSizeTimeDateStatistics
1clock530.05942013/03/30 02:56:380B / 30B / 23B
2teebee530.04832013/03/30 04:16:250B / 30B / 21B

J _

RankUserSizeTimeDateStatistics
1I., S.390.04342013/03/29 22:38:120B / 16B / 23B
2I., S.360.04742013/04/15 21:41:050B / 15B / 21B

C _

RankUserSizeTimeDateStatistics
1tails500.02992013/03/29 20:57:340B / 27B / 23B
2teebee500.02372013/03/30 06:45:410B / 27B / 23B
3nu500.01622013/04/04 03:53:320B / 29B / 21B
4ush500.02732013/04/05 16:28:340B / 27B / 23B
5twobit500.01792013/04/07 07:34:500B / 27B / 23B
6saru560.01662013/04/08 01:50:580B / 29B / 27B
7Jay Dough560.01812013/04/09 02:43:360B / 29B / 27B
8orangetide(symbol)590.02232013/04/06 03:32:350B / ?B / ?B
9Raider660.02162013/04/10 03:43:130B / ?B / ?B

Rust _

RankUserSizeTimeDateStatistics
1Kroisse1120.05702013/04/24 14:55:230B / 71B / 33B

Haskell _

RankUserSizeTimeDateStatistics
1henkma640.02472013/04/03 06:40:540B / 32B / 29B

Java _

RankUserSizeTimeDateStatistics
1teebee1130.39782013/03/30 05:15:390B / 66B / 43B

C# _

RankUserSizeTimeDateStatistics
1Hendrik1170.09842013/03/30 09:47:350B / 75B / 37B
2teebee1170.10292013/03/30 10:13:420B / 75B / 37B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee720.23512013/03/30 06:50:250B / 39B / 30B

AWK _

RankUserSizeTimeDateStatistics
1teebee430.02222013/03/31 09:40:030B / 16B / 27B
2clock440.02502013/03/30 21:13:270B / 18B / 26B

sed _

RankUserSizeTimeDateStatistics
1tails330.02822013/03/29 21:35:580B / 8B / 22B
2clock330.02282013/03/30 01:50:070B / 8B / 22B
3teebee330.02272013/03/31 17:19:100B / 8B / 22B

R _

RankUserSizeTimeDateStatistics
1clock550.28572013/04/07 14:17:210B / 25B / 28B
2pooq900.55542013/04/07 11:45:590B / 52B / 32B

GolfScript _

RankUserSizeTimeDateStatistics
1clock160.19582013/03/30 00:21:280B / 6B / 10B
2tails160.21922013/03/30 11:41:590B / 6B / 10B

FlogScript _

RankUserSizeTimeDateStatistics
1teebee210.08962013/03/30 10:06:000B / 4B / 16B
2clock210.12142013/03/30 21:07:130B / 2B / 18B

Burlesque _

RankUserSizeTimeDateStatistics
1clock210.02892013/03/30 09:09:080B / 5B / 15B
2teebee210.02982013/03/30 09:21:070B / 5B / 15B

gas _

RankUserSizeTimeDateStatistics
1mbijak600.03872013/04/10 05:48:4222B / 30B / 4B
2mbijak590.02932014/10/04 11:25:5222B / 29B / 4B

Vim _

RankUserSizeTimeDateStatistics
1clock260.06472013/03/30 02:25:090B / 8B / 17B

Groovy _

RankUserSizeTimeDateStatistics
1teebee482.48332013/03/30 04:29:470B / 26B / 21B
2clock481.84432013/03/30 08:13:590B / 25B / 22B

Logo _

RankUserSizeTimeDateStatistics
1teebee590.16452013/03/31 13:06:350B / 37B / 11B
2clock590.17092013/04/04 00:43:510B / 37B / 11B

Language Ranking_

RankLangUserSizeScore
1GolfScriptclock1610000
2Burlesqueclock217619
3FlogScriptteebee217619
4Vimclock266153
5Perlteebee275925
6sedtails334848
7Rubyleonid344705
8JI., S.364444
9AWKteebee433720
10Groovyteebee483333
11PHPteebee483333
12Ctails503200
13BASICclock533018
14Rclock552909
15Logoteebee592711
16gasmbijak592711
17JavaScriptclock622580
18Pythonleonid632539
19Haskellhenkma642500
20Xtalteebee682352
21Asymptoteteebee722222
22Ioteebee752133
23RustKroisse1121428
24Javateebee1131415
25C#Hendrik1171367

return to the top page