is it a roman numeral
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
1 if it is valid standard form roman numeral else 0
Test cases test valid roman numerals from 1 to 3999 and invalid numerals with up to 4 of each IVXLCDM characters.
-darrenks
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
I
IX
XI
XIV
XC
MMXXIII
XXX
IIV
IC
IIII
Sample output:
1
1
1
1
1
1
1
0
0
0
Sample input:_
IX
XIII
CCCC
IIII
II
CDXLIV
XIX
XXXIX
CIC
XLIX
VIII
XXVIII
VIV
V
XVI
VIIII
VXC
XIC
M
XXIX
VI
MMMDCCCLXXXVIII
III
IXI
DID
L
I
IXC
DD
XIV
IIV
XLI
VC
CDC
CM
IXIXI
IV
VM
DM
C
XXXVIII
XL
XLVIII
XLV
VMC
VX
CVM
XC
CMV
IVI
XXV
CMXCIX
CD
CCXC
XXXX
IC
XXXV
D
LM
VV
CLVIIII
Sample output:
1
1
0
0
1
1
1
1
0
1
1
1
0
1
1
0
0
0
1
1
1
1
1
0
0
1
1
0
0
1
0
1
0
0
1
0
1
0
0
1
1
1
1
1
0
0
0
1
1
0
1
1
1
1
0
0
1
1
0
0
0
Sample input:_
XVDCLV
XXXMILVMCIVL
LCXMDMLCMLVI
CVMDDILDCDM
MMCMLXIV
IVMDXCII
MV
DIXDCXCV
MMDX
MMMDCCXX
MMMDCXC
MMMDCXCI
LXV
MMMCMXLI
MDCCXL
XIXLXLLVXVD
XLVI
IXMMLVL
CXI
CDMMI
MDCXLIII
DCXL
MMMCCCLXVI
MMDXXXVI
MCLXXI
LVCLDXXCMIMVIX
IXMLVLDIXXV
LL
VVLXCLID
MDLXXVII
ICMLM
IXD
MMMCCLXXXIV
ICLLLVDCM
DCCXXI
VII
MMMDCIX
CXI
VLDV
MMMCCCXXV
VLLLV
MXLVIII
DDVMXXVMMDIICDX
MDCXIX
LCLDDLCVXMXI
CDLXX
MMMDCCXLIII
MVDD
IMXMXVMLVV
DCCLXIX
MC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
1
0
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
1
1
1
1
0
1
0
1
1
1
0
1
1
1
1
1
0
1
1
0
1
0
1
1
1
1
1
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
0
0
0
1
1
1
0
0
1
1
0
1
1
1
0
1
1
0
0
1
1
0
0
0
1
1
1
1
0
1
1
0
1
0
1
1
1
1
1
1
1
1
1
0
0
1
0
1
1
1
1
0
1
0
0
0
0
1
0
1
1
1
0
1
1
0
0
1
0
1
1
1
1
0
1
0
0
0
1
1
1
1
1
0
1
1
1
0
0
0
1
0
1
0
1
0
1
1
1
1
1
0
1
0
0
0
1
1
0
1
1
1
1
0
1
0
0
1
0
1
0
1
1
1
0
0
1
1
0
0
1
0
1
1
0
1
0
0
0
0
0
0
1
1
1
0
0
0
1
0
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
1
0
1
1
1
1
0
1
1
1
0
1
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
1
1
0
0
0
0
0
1
1
1
0
1
0
0
1
1
0
0
0
0
1
0
0
0
0
1
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
1
1
1
0
1
1
0
0
1
0
1
1
1
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 62 | 0.0682 | 2023/04/11 10:34:20 | 0B / 34B / 26B |
2 | Sisyphus | 62 | 0.0475 | 2023/04/11 13:48:55 | 0B / 31B / 29B |
3 | Hydrazer | 73 | 0.0458 | 2023/04/23 00:40:52 | 0B / 35B / 38B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | xnor | 100 | 0.1007 | 2023/04/25 04:49:27 | 0B / 57B / 40B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 55 | 0.0459 | 2023/04/11 13:57:29 | 0B / 24B / 26B |
2 | mitchs | 55 | 0.0462 | 2023/04/11 14:07:01 | 0B / 25B / 25B |
3 | Sisyphus | 57 | 0.0430 | 2023/04/11 14:56:29 | 0B / 25B / 27B |
4 | McBusLuck | 57 | 0.0432 | 2023/04/17 03:12:10 | 0B / 25B / 27B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Fleur | 155 | 0.1113 | 2023/04/19 16:27:30 | 0B / 80B / 49B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 83 | 0.1924 | 2023/04/20 10:50:22 | 0B / 27B / 45B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | sed | tails | 55 | 10000 |
2 | Perl | tails | 62 | 8870 |
3 | Ruby2 | rotary-o | 63 | 8730 |
4 | Ruby | rotary-o(darrenks) | 63 | 8730 |
5 | Bash (builtins) | tails | 83 | 6626 |
6 | Scala | rotary-o | 91 | 6043 |
7 | Python | xnor | 100 | 5500 |
8 | C | tails | 119 | 4621 |
9 | Bash | Fleur | 155 | 3548 |
10 | Java | rotary-o | 165 | 3333 |
11 | C# | rotary-o | 187 | 2941 |
return to the top page