The solution Posted by interviewbit is not submitting


#1

Comment body goes here.Your submission failed for the following input:
3547
1726
2693
1972
2619
1238
4154
175
4626
2491
1585
189
4950
4391
2259
2487
1735
4245
3218
4006
3163
1915
1333
2435
2975
324
2648
3093
2191
3744
4862
29
1337
3773
4734
123
1950
2901
2738
2938
3846
999
1396
51
3909
4739
80
3254
2317
3010
2473
4966
3533
1189
60
468
1253
2556
104
154
3803
1873
4440
2034
3716
4956
3676
1844
105
3178
2430
287
4934
3323
4541
1097
186
171
1077
1782
2370
3974
1540
828
3145
2516
2429
4122
3740
4551
1680
2133
1240
2161
2583
2118
4431
3469
2470
4710
4284
3615
3102
260
2617
2382
1988
4577
415
1661
2440
1710
3342
84
1682
1029
229
1415
1899
2158
841
4333
1034
2363
3971
4803
2788
472
3604
4925
375
56
1637
1067
393
3043
2687
2802
4148
2854
4664
4519
4725
340
4422
2218
2373
2328
2267
4207
3996
4009
3260
262
4623
4299
712
1680
3101
2028
3614
4637
2769
3077
1810
1922
955
1467
3596
700
4352
1005
2609
2430
1302
1868
3736
2380
2918
3283
2090
778
4066
2908
3297
3494
3129
1623
148
3128
41
733
4891
1711
295
3574
143
695
3274
3236
2212
965
4684
4654
4456
1888
4716
3915
1999
6

This content will be copied in input file as it is

Your function returned the following :
MMMDXLVII
MDCCXXVI
MMDCXCIII
MCMLXXII
MMDCXIX
MCCXXXVIII
MMMCLIV
CLXXV
MMMDCXXVI
MMCDXCI
MDLXXXV
CLXXXIX
MMMCML
MMMCCCXCI
MMCCLIX
MMCDLXXXVII
MDCCXXXV
MMMCCXLV
MMMCCXVIII
MMMVI
MMMCLXIII
MCMXV
MCCCXXXIII
MMCDXXXV
MMCMLXXV
CCCXXIV
MMDCXLVIII
MMMXCIII
MMCXCI
MMMDCCXLIV
MMMDCCCLXII
XXIX
MCCCXXXVII
MMMDCCLXXIII
MMMDCCXXXIV
CXXIII
MCML
MMCMI
MMDCCXXXVIII
MMCMXXXVIII
MMMDCCCXLVI
CMXCIX
MCCCXC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
MMMX
MMCDLXXIII
MMMMCMLXVI
MMMDXXXIII
MCLXXXIX
LX
CDLXVIII
MCCLIII
MMDLVI
CIV
CLIV
MMMDCCCIII
MDCCCLXXIII
MMMMCDXL
MMXXXIV
MMMDCCXVI
MMMMCMLVI
MMMDCLXXVI
MDCCCXLIV
CV
MMMCLXXVIII
MMCDXXX
CCLXXXVII
MMMMCMXXXIV
MMMCCCXXIII
MMMMDXLI
MXCVII
CLXXXVI
CLXXI
MLXXVII
MDCCLXXXII
MMCCCLXX
MMMCMLXXIV
MDXL
DCCCXXVIII
MMMCXLV
MMDXVI
MMCDXXIX
MMMMCXXII
MMMDCCXL
MMMMDLI
MDCLXXX
MMCXXXIII
MCCXL
MMCLXI
MMDLXXXIII
MMCXVIII
MMMMCDXXXI
MMMCDLXIX
MMCDLXX
MMMMDCCX
MMMMCCLXXXIV
MMMDCXV
MMMCII
CCLX
MMDCXVII
MMCCCLXXXII
MCMLXXXVIII
MMMMDLXXVII
CDXV
MDCLXI
MMCDXL
MDCCX
MMM


#2

Interview bit guys
please check the your posted solution.