Yet Another Roman Numeral Problem

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

Given two roman numerals between 1 (I) and 4 (IV), print their sum.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

II II
IV II
III I
I III
II III
IV I
III IV
III IV
IV IV
I II
II IV
II I
I III
III III
III II
I II
II III
IV I
I IV
II I
IV IV
II III
III III
II III
III I

Sample output:

IV
II
IV
IV
V
I
III
III
VIII
III
II
III
IV
VI
V
III
V
I
I
III
VIII
V
VI
V
IV

Sample input:_

III I
I III
I I
III I
II I
IV II
I I
IV IV
I I
I I
IV III
I I
IV I
IV IV
II I
III II
IV II
III IV
II I
III IV
II I
II II
IV I
II IV
II III

Sample output:

IV
IV
II
IV
III
II
II
VIII
II
II
III
II
I
VIII
III
V
II
III
III
III
III
IV
I
II
V

Sample input:_

IV I
I III
IV IV
III III
IV IV
II II
I III
II III
II I
IV II
I IV
IV III
III I
II IV
IV III
IV I
II I
III I
IV III
I II
II I
IV IV
I I
II II
III I

Sample output:

I
IV
VIII
VI
VIII
IV
IV
V
III
II
I
III
IV
II
III
I
III
IV
III
III
III
VIII
II
IV
IV

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o510.05592022/08/11 12:41:550B / 34B / 10B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o510.18792022/08/11 12:41:420B / 34B / 10B

Perl _

RankUserSizeTimeDateStatistics
1rotary-o460.04612022/08/12 00:12:230B / 23B / 20B
2tails460.04562022/08/12 17:16:370B / 23B / 20B

C _

RankUserSizeTimeDateStatistics
1tails770.04132022/08/16 14:55:518B / 37B / 32B
2rotary-o770.04132022/08/20 10:31:508B / 37B / 32B
3nu(rotary-o,tails)750.04182022/08/26 19:44:058B / 37B / 30B
4rotary-o(tails)760.04132022/08/25 22:48:328B / 36B / 32B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1530.16552022/08/11 13:00:350B / 91B / 51B

C# _

RankUserSizeTimeDateStatistics
1rotary-o1550.13112022/08/13 14:01:100B / 97B / 46B

sed _

RankUserSizeTimeDateStatistics
1tails400.04212022/08/11 17:10:590B / 21B / 15B
2rotary-o400.04362022/08/12 13:07:060B / 21B / 15B
3McBusLuck400.04252022/08/12 14:43:390B / 21B / 15B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1McBusLuck610.05752022/08/20 19:36:040B / 32B / 18B
2tails630.10272022/08/15 15:21:450B / 29B / 29B

Whitespace _

RankUserSizeTimeDateStatistics
1rotary-o2830.05742022/08/13 13:31:550B / 0B / 0B

gs2 _

RankUserSizeTimeDateStatistics
1whio210.22072022/08/13 01:29:0210B / 8B / 3B
2tails210.23502022/08/17 18:44:518B / 7B / 6B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails9990.07362022/08/18 15:39:430B / 538B / 461B
2tails (source)18360.07122022/09/22 10:22:280B / 673B / 553B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o716.89342022/08/11 14:26:470B / 48B / 16B

Language Ranking_

RankLangUserSizeScore
1gs2whio2110000
2sedtails405250
3Perlrotary-o464565
4Ruby2rotary-o514117
5Rubyrotary-o514117
6Bash (builtins)McBusLuck613442
7Scalarotary-o712957
8Cnu(rotary-o,tails)752800
9Javarotary-o1531372
10C#rotary-o1551354
11Whitespacerotary-o283742
12Lazy-Ktails999210

return to the top page