add 1 to numbers

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

Add 1 to all numbers (digits 0-9 appearing consecutively) in the input text.
(texts taken from Wikipedia)

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

The kanji that make up Japan's name mean "sun origin", and it is often called
the "Land of the Rising Sun". Japan is a stratovolcanic archipelago consisting
of about 6,852 islands. The four largest are Honshu, Hokkaido, Kyushu, and
Shikoku, which make up about ninety-seven percent of Japan's land area and
often are referred to as home islands. The country is divided into 47
prefectures in eight regions, with Hokkaido being the northernmost prefecture
and Okinawa being the southernmost one. The population of 127 million is the
world's tenth largest, of which 98.5% are ethnic Japanese. 90.7% of people
live in cities, while 9.3% live in the countryside. About 13.8 million people
live in Tokyo, the capital of Japan. The Greater Tokyo Area is the most
populous metropolitan area in the world with over 38 million people.

Sample output:

The kanji that make up Japan's name mean "sun origin", and it is often called
the "Land of the Rising Sun". Japan is a stratovolcanic archipelago consisting
of about 7,853 islands. The four largest are Honshu, Hokkaido, Kyushu, and
Shikoku, which make up about ninety-seven percent of Japan's land area and
often are referred to as home islands. The country is divided into 48
prefectures in eight regions, with Hokkaido being the northernmost prefecture
and Okinawa being the southernmost one. The population of 128 million is the
world's tenth largest, of which 99.6% are ethnic Japanese. 91.8% of people
live in cities, while 10.4% live in the countryside. About 14.9 million people
live in Tokyo, the capital of Japan. The Greater Tokyo Area is the most
populous metropolitan area in the world with over 39 million people.

Sample input:_

Ludwig van Beethoven (baptised 17 December 1770 - 26 March 1827) was a German
composer and pianist. A crucial figure in the transition between the Classical
and Romantic eras in classical music, he remains one of the most recognised
and influential of all composers. His best-known compositions include 9
symphonies; 5 piano concertos; 1 violin concerto; 32 piano sonatas; 16 string
quartets; a mass, the Missa solemnis; and an opera, Fidelio. His career as a
composer is conventionally divided into early, middle, and late periods; the
"early" period is typically seen to last until 1802, the "middle" period from
1802 to 1812, and the "late" period from 1812 to his death in 1827.

Beethoven was born in Bonn, then the capital of the Electorate of Cologne and
part of the Holy Roman Empire. He displayed his musical talents at an early age
and was taught by his father Johann van Beethoven and composer and conductor
Christian Gottlob Neefe. At the age of 21 he moved to Vienna, where he began
studying composition with Joseph Haydn and gained a reputation as a virtuoso
pianist. He lived in Vienna until his death. By his late 20s his hearing began
to deteriorate and by the last decade of his life he was almost completely
deaf. In 1811 he gave up conducting and performing in public but continued to
compose; many of his most admired works come from these last 15 years of his
life, commonly known as his "late" period.

Sample output:

Ludwig van Beethoven (baptised 18 December 1771 - 27 March 1828) was a German
composer and pianist. A crucial figure in the transition between the Classical
and Romantic eras in classical music, he remains one of the most recognised
and influential of all composers. His best-known compositions include 10
symphonies; 6 piano concertos; 2 violin concerto; 33 piano sonatas; 17 string
quartets; a mass, the Missa solemnis; and an opera, Fidelio. His career as a
composer is conventionally divided into early, middle, and late periods; the
"early" period is typically seen to last until 1803, the "middle" period from
1803 to 1813, and the "late" period from 1813 to his death in 1828.

Beethoven was born in Bonn, then the capital of the Electorate of Cologne and
part of the Holy Roman Empire. He displayed his musical talents at an early age
and was taught by his father Johann van Beethoven and composer and conductor
Christian Gottlob Neefe. At the age of 22 he moved to Vienna, where he began
studying composition with Joseph Haydn and gained a reputation as a virtuoso
pianist. He lived in Vienna until his death. By his late 21s his hearing began
to deteriorate and by the last decade of his life he was almost completely
deaf. In 1812 he gave up conducting and performing in public but continued to
compose; many of his most admired works come from these last 16 years of his
life, commonly known as his "late" period.

Sample input:_

Constructed from 1887-1889 as the entrance to the 1889 World's Fair, it was
initially criticised by some of France's leading artists and intellectuals for
its design, but it has become a global cultural icon of France and one of the
most recognisable structures in the world. The Eiffel Tower is the most-visited
paid monument in the world; 6.91 million people ascended it in 2015.

The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey
building, and the tallest structure in Paris. Its base is square, measuring 125
metres (410 ft) on each side. During its construction, the Eiffel Tower
surpassed the Washington Monument to become the tallest man-made structure in
the world, a title it held for 41 years until the Chrysler Building in New York
City was finished in 1930. Due to the addition of a broadcasting aerial at the
top of the tower in 1957, it is now taller than the Chrysler Building by 5.2
metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest
free-standing structure in France after the Millau Viaduct.

Sample output:

Constructed from 1888-1890 as the entrance to the 1890 World's Fair, it was
initially criticised by some of France's leading artists and intellectuals for
its design, but it has become a global cultural icon of France and one of the
most recognisable structures in the world. The Eiffel Tower is the most-visited
paid monument in the world; 7.92 million people ascended it in 2016.

The tower is 325 metres (2,064 ft) tall, about the same height as an 82-storey
building, and the tallest structure in Paris. Its base is square, measuring 126
metres (411 ft) on each side. During its construction, the Eiffel Tower
surpassed the Washington Monument to become the tallest man-made structure in
the world, a title it held for 42 years until the Chrysler Building in New York
City was finished in 1931. Due to the addition of a broadcasting aerial at the
top of the tower in 1958, it is now taller than the Chrysler Building by 6.3
metres (18 ft). Excluding transmitters, the Eiffel Tower is the second tallest
free-standing structure in France after the Millau Viaduct.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock270.03242019/02/08 00:15:240B / 14B / 10B
2Histocrat270.03252019/02/08 00:44:060B / 14B / 10B
3mitchs270.03252019/02/08 01:27:470B / 14B / 10B
4rotary-o270.03242019/02/08 22:06:390B / 14B / 10B
5llhuii270.03252019/02/14 12:08:220B / 14B / 10B
6test370.03222019/02/16 18:10:160B / 16B / 19B

Ruby2 _

RankUserSizeTimeDateStatistics
1clock270.17212019/02/08 00:27:030B / 14B / 10B
2mitchs270.14912019/02/08 01:28:170B / 14B / 10B
3rotary-o270.15102019/02/08 22:06:270B / 14B / 10B
4llhuii270.14942019/02/14 12:08:330B / 14B / 10B
5letranger270.14752019/03/03 06:56:370B / 14B / 10B
6krswtkhr460.14992019/02/08 15:09:230B / 20B / 26B

Perl _

RankUserSizeTimeDateStatistics
1mitchs270.03332019/02/08 02:10:340B / 12B / 13B
2tails270.05372019/02/08 08:47:440B / 12B / 13B
3llhuii270.03322019/02/14 12:07:200B / 12B / 13B
4teebee270.03282019/02/16 18:27:590B / 12B / 13B
5Hendrik280.03272019/02/18 05:55:100B / 12B / 14B
6lynn280.03222019/03/01 07:37:560B / 12B / 14B
7Hydrazer270.04572022/12/21 23:30:480B / 12B / 13B
8kotatsugame280.03522019/03/14 23:35:320B / 12B / 14B

Python _

RankUserSizeTimeDateStatistics
1mitchs810.07112019/02/08 11:28:210B / 51B / 26B
2clock810.07292019/02/10 16:43:240B / 50B / 27B
3llhuii810.07332019/02/14 12:17:410B / 49B / 29B
4xnor810.07012019/02/17 03:59:110B / 51B / 26B
5test810.07352019/02/24 21:20:090B / 51B / 26B
6Hendrik810.07242019/02/24 21:20:420B / 51B / 26B
7hallvabo820.08552019/02/09 02:11:010B / 50B / 28B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs810.11872019/02/08 12:02:350B / 50B / 28B
2llhuii810.14162019/02/14 12:18:250B / 50B / 29B
3mypetlion830.12342019/02/08 08:21:270B / 51B / 29B

PHP _

RankUserSizeTimeDateStatistics
1clock490.05972019/02/14 02:51:350B / 33B / 16B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea600.05062019/02/11 21:33:390B / 36B / 24B
2clock600.04042019/02/11 23:33:090B / 37B / 23B
3Hendrik600.03892019/02/11 23:36:440B / 37B / 23B
4xulapp600.04142019/02/12 00:06:340B / 37B / 23B
5FizzyTea (alt)600.04222019/02/12 04:20:050B / 37B / 23B

Lua _

RankUserSizeTimeDateStatistics
1Hendrik630.03392019/02/10 23:26:370B / 39B / 22B
2clock630.03262019/02/10 23:40:080B / 39B / 24B

Tcl _

RankUserSizeTimeDateStatistics
1clock630.06332019/02/10 17:10:210B / 35B / 20B

Perl6 _

RankUserSizeTimeDateStatistics
1kotatsugame332.43922019/03/14 23:41:180B / 17B / 16B

C _

RankUserSizeTimeDateStatistics
1llhuii670.03162019/02/14 16:07:220B / 31B / 36B
2tails670.03162019/02/18 18:27:490B / 31B / 36B
3chocobi810.03342019/02/10 09:14:280B / 36B / 45B

Go _

RankUserSizeTimeDateStatistics
1Hendrik2140.03092019/02/25 05:25:190B / 147B / 61B
2test2440.03092019/02/24 06:51:100B / 165B / 73B

AWK _

RankUserSizeTimeDateStatistics
1llhuii560.03582019/02/15 23:46:170B / 27B / 29B

sed _

RankUserSizeTimeDateStatistics
1clock620.03372019/02/10 19:11:590B / 27B / 34B
2mitchs620.03272019/02/14 00:21:370B / 27B / 34B
3tails620.03292019/03/07 09:12:110B / 27B / 34B

jq 1.6 _

RankUserSizeTimeDateStatistics
1eban540.05632022/03/11 17:33:490B / 25B / 29B

Bash _

RankUserSizeTimeDateStatistics
1tails270.00842019/02/08 15:36:400B / 13B / 13B
2llhuii270.00852019/02/16 10:08:250B / 13B / 13B
3Hendrik280.00752019/02/23 20:15:120B / 13B / 14B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails681.06462019/02/22 09:52:030B / 25B / 35B
2llhuii711.19612019/03/03 14:11:390B / 28B / 32B
3tails (llhuii)671.01062019/03/08 13:48:310B / 25B / 34B

wake _

RankUserSizeTimeDateStatistics
1clock720.20582019/02/08 00:22:040B / 28B / 41B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii340.03352019/02/21 16:56:440B / 17B / 17B
2yamaya390.03202019/02/20 19:29:470B / 22B / 17B

m4 _

RankUserSizeTimeDateStatistics
1tails670.03232019/02/14 10:51:090B / 34B / 33B

gs2 _

RankUserSizeTimeDateStatistics
1tails120.20292019/03/06 15:35:492B / 6B / 3B
2mitchs130.19822019/02/08 18:54:093B / 6B / 4B

Vim _

RankUserSizeTimeDateStatistics
1clock240.03622019/02/10 20:47:153B / 13B / 5B

goruby _

RankUserSizeTimeDateStatistics
1mitchs220.06442019/02/08 04:24:060B / 10B / 11B

Groovy _

RankUserSizeTimeDateStatistics
1Hendrik552.26112019/02/11 07:28:070B / 34B / 19B
2clock552.19092019/02/11 15:11:430B / 34B / 19B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o746.14972019/02/08 00:12:060B / 42B / 32B
2Hendrik755.99092019/02/11 03:47:530B / 42B / 33B

Language Ranking_

RankLangUserSizeScore
1gs2tails1210000
2gorubymitchs225454
3Vimclock245000
4Rubyclock274444
5Ruby2clock274444
6Perlmitchs274444
7Bashtails274444
8Perl6kotatsugame333636
9xgawkllhuii343529
10PHPclock492448
11jq 1.6eban542222
12GroovyHendrik552181
13AWKllhuii562142
14JavaScriptFizzyTea602000
15sedclock621935
16Tclclock631904
17LuaHendrik631904
18m4tails671791
19Cllhuii671791
20Bash (builtins)tails (llhuii)671791
21wakeclock721666
22Scalarotary-o741621
23Pythonmitchs811481
24Python3mitchs811481
25GoHendrik214560

return to the top page