QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#865188#8443. Converting Romansucup-team1005#AC ✓5ms3968kbC++14667b2025-01-21 15:54:002025-01-21 15:54:00

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3584kb

input:

5
CDXCIX
ID
IV
IIIIV
IIIIIIV

output:

499
499
4
1
-1

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 5ms
memory: 3456kb

input:

1000
DMIIMXVVCIDVDCLMMDIMMIIILVLLICCDCMVVIDVVILLVCIDCVLVIMIDIICDMMMXCIDVVCCMDXLMCMLILXVILIVDIMLLDVIVILLMVVMDVMDXLDDLCCILDVXCXLLDIILXCMXLXIMXCLCMDXMMCIIDDDDCVDVVLCDXVDICIXDMCIICDIXMVDDLLVLMMILVDLXCXXVVXXDIDDMVIXMXMMIMMIMXXMVXCVLXMIDMLDMLCCMCCCMMMLVDXCDIIMXVDIDDDCCMCCLMMXCVIVMLLVLLIIXVLIIDVIVCDIILMCCX...

output:

20940
17472
15284
23163
17037
7139
16129
14386
17210
12167
13281
26969
16438
11239
12193
25757
7642
15375
8612
19084
4276
16565
10310
3355
16765
8418
18367
11844
27072
24270
10082
24469
7887
6696
4644
14793
10215
15019
18169
14092
14854
29400
24147
6823
9920
12600
11499
13857
15980
31580
23411
18378...

result:

ok 1000 lines

Test #3:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

26542
18066
16894
13366
4344
8157
25960
13612
10504
16744
15488
18807
16631
10297
21863
9227
10086
22059
11559
2640
30074
8102
12485
11383
21541
11770
8000
14205
16341
8242
16686
24601
20058
46
14657
2558
23374
13325
14132
6768
23262
20779
20447
20132
20659
15782
3028
13095
2166
22181
4935
30169
107...

result:

ok 1000 lines

Test #4:

score: 0
Accepted
time: 2ms
memory: 3584kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXXXXXXXXXXVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCCCCCLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMMDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

26912
20536
13805
7944
13839
15178
11189
24097
2067
26113
8129
14048
8993
17171
-3624
14492
20773
17053
14002
9960
7493
25705
12211
13578
6060
6939
22496
12084
19834
13208
15938
13446
27131
14804
8341
22753
7375
18073
18760
8484
19330
13458
21946
24461
14358
13800
10748
-1345
19530
15523
14088
18892...

result:

ok 1000 lines

Test #5:

score: 0
Accepted
time: 5ms
memory: 3712kb

input:

1000
IVLIDDLVDCVDIVXDDDVMCIVICLLMCMILVDDXMMICMVDDCLMIMIIICLMILDVXXCDXVDCVDMXMIVVLMCCDDXCDCICIDDMXCMILDLXIXCIDCMIXMCDXDVVCLDLCDCLIILVCCXXXIVIIICIMCDCDICILLXXLLDDDDMLIDXVIDVILVXICLIIXIMCXMCLXIXCVDXXCXDVIDXCCDMLIVCCIICVDCLCDMDLCVCICXXCLMCXCVIVMCVDLMCXIMILVVIIVMMDIXLIVDLLXDCILVCLVLMCILMDIIILVMIIXLDLICVV...

output:

1324
18220
17321
5043
18344
10679
26499
10174
15533
25551
14271
15829
22963
10082
-4607
10228
6129
25059
13525
19645
20027
20590
30574
24580
11214
15004
20951
-4297
19518
15315
7608
14215
19109
6574
9503
15091
15939
10643
15818
1919
15918
20491
15192
21419
12906
15685
11391
17009
12644
15847
6609
11...

result:

ok 1000 lines

Test #6:

score: 0
Accepted
time: 2ms
memory: 3712kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

10849
15976
3497
25395
22161
22051
19079
12863
26103
25927
6259
23650
27124
14754
-4826
5303
3856
24663
8487
9835
27609
27051
22212
19010
28142
15579
22685
18077
8410
16543
11871
18130
12846
12097
21110
13137
23746
23960
6632
13638
9383
21435
16808
9985
15153
8383
10107
9722
20601
12945
28258
25071
...

result:

ok 1000 lines

Test #7:

score: 0
Accepted
time: 2ms
memory: 3712kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXXXVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

16168
16390
44190
24197
19761
21596
17596
15114
8669
6608
16907
-5280
15392
30951
25349
18859
18785
8138
12617
11973
15702
2897
7147
26547
9798
10089
10347
3434
12811
12063
15227
20415
23027
12622
10138
6969
9071
-1183
11074
17464
18285
14538
10463
22004
29363
3079
23094
10322
2371
25135
18604
1792
...

result:

ok 1000 lines

Test #8:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

1000
MMDCMXXDDDLCDIXXXXIIXXCMXIVXIMCDIVXCDVMVXILLMVVLXMLDMMXIXCXXXVLIILDICMLXVMLMLDMMCCVXVDMMCMMDMCXCMDCVVVXIIMMLXVCMCIVIMXIIDVMMCDIIXCLMDLCLMMVMVCVVMICVVLMLIDDDDCVVVVDLXXCCVVCMVIDLMMILXIICVVDCCLCLMLDCVMMCIXDVMVMMVCXIIXVVDXIVDMXCXIDVLMXCLCLCMDCCIVXCCMVCDILXXDCCXXIVMVVVVCMICLDCMVLICVLICLDVLMIDLXIVILC...

output:

26901
9619
17513
22751
19667
16032
26097
14938
11567
15640
12744
21369
18317
8246
28252
2038
21415
24695
12954
7143
16070
17650
14488
16332
13144
25084
15756
23546
17632
21569
16032
15316
25355
4815
3550
21263
22517
14357
19104
30805
15247
5470
10639
10874
17860
15487
18603
2501
18266
19698
19768
29...

result:

ok 1000 lines

Test #9:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

22851
14964
6236
20486
20524
12633
13649
12896
11025
11429
18875
9051
8783
11281
11390
7733
13543
7515
27657
18317
12160
23307
13644
10998
18465
18245
12429
2716
681
17077
787
12156
27093
12594
10236
21274
10223
22340
12736
14095
16890
10544
18099
14222
6359
24601
6602
16283
6024
24810
22499
17089
1...

result:

ok 1000 lines

Test #10:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLLLLXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMMMMMMMDMMMMMMMMMMMMMMMMMMMMM...

output:

6449
15254
2213
25763
6395
18486
1419
19782
19277
19878
24086
17326
8599
12384
12224
18955
6631
16098
12193
14153
13659
29374
34547
11736
8166
12559
23641
24839
12849
16751
5801
18928
23396
8164
24713
-6788
27129
15387
8878
5795
8486
12587
10269
14070
11534
16071
9945
6949
1112
14665
28873
24230
340...

result:

ok 1000 lines

Test #11:

score: 0
Accepted
time: 5ms
memory: 3584kb

input:

1000
IICLDCDDIMMDVMDMMDMXLCMXMVMMLMCCMXMICIMCMCIVCCIXMDIDVVCCMVVVDXIVDCXXILVDMXDCXVMLDLVCVDCVDDDCVVILLDCXXDIVIMCMVLDXLVLCDLMXDMXVLLLLCXIMXCCVLVLDDVXMVDILLCCMMICCXDLLIDVMVDLIVIVXXCCIDCVILIDXLIMVCLXDMXCIXMDIVIXDIIXLVDMDVCDIXLCMDDDVMICLDDILXMIDMIVLVXCCVDDVMLDMVLVCCDMLDLLIDMMCXDVXVVDICDVCVDIVDLMVMMXXVLM...

output:

12239
6392
-2812
13022
26172
3282
6044
7787
12886
15609
19258
15425
29620
16583
3124
12668
11285
12895
25106
14965
18580
11233
22007
29099
18666
17994
20127
9650
12315
19783
30474
10480
23706
12120
5460
8274
23131
5884
27871
15989
9700
16063
22250
17444
10283
13277
7758
16628
27622
7333
12093
23036
...

result:

ok 1000 lines

Test #12:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMMMMMMMMMMMMMMMMMMMMM...

output:

-401
12460
14441
27089
25696
17811
19129
23974
24559
7123
23183
10258
14169
13591
14346
12587
5096
24865
15112
26253
12731
6619
18686
15463
27512
27316
12320
17601
15428
9927
2938
21116
19848
4658
12312
6562
7566
21866
12800
9546
10788
8768
9000
9589
13007
9342
17332
8127
16817
10600
5495
17602
1311...

result:

ok 1000 lines

Test #13:

score: 0
Accepted
time: 2ms
memory: 3584kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVVIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

17091
12518
13650
6118
11304
5300
10315
15906
21428
14239
29287
16577
6362
13441
19904
20197
27256
2409
14230
26283
20660
13372
9805
16548
19229
12055
22091
24639
10732
18026
19212
20470
20131
18568
28270
19006
17257
20557
8510
-1563
16569
14321
7837
18297
24574
9105
23007
11762
10453
15975
12348
73...

result:

ok 1000 lines

Test #14:

score: 0
Accepted
time: 4ms
memory: 3584kb

input:

1000
VDCXLIIIXDVIVIMLMVMMDLCIDVXMXCDCMVMDMMVVLXIVDMVIXDVVIIIVLXCXLIDLCIVLXDVVIIXIXLXDMICDMCLCLDLMIIDVIILIDXLIVMIIDLVICLCDVVLCMMIIXIIVCDXLLLIXDIIXLDIXCVXMDIMLVIDVIVMLDXIMXXXMVDICMLMDCCVXMXDLMCMIVLDILVXDCVCXMDDCDCXMCLDXVVCCIDVXDIVIICLLLDDMDXVIXMDCCMXVMDXMXDXDDMVLCLLDCMCCVLDDCCIMILDIILCMIDXIVMCCDIMXXCM...

output:

10047
20259
5045
31290
15830
15350
9947
12714
7909
6355
23940
12571
18120
12211
23253
9613
6135
13510
20117
13483
19526
8085
15528
25722
22417
11422
2366
19472
25769
30788
11768
10587
29206
12805
21350
15537
23190
20110
11884
23116
14008
14233
24500
11758
12262
22198
8452
19444
20634
11688
10533
103...

result:

ok 1000 lines

Test #15:

score: 0
Accepted
time: 1ms
memory: 3584kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

13277
30257
9776
6944
14030
20910
25403
5211
24274
15971
22320
27170
18443
-3416
18825
11877
15109
15365
12233
12473
8532
14864
21000
6420
1245
16216
14880
19994
16102
7692
13907
17767
14047
-4402
25314
19160
10941
10956
18911
12694
27546
19411
5545
17610
9339
22209
1943
2389
13665
12601
13182
1370
...

result:

ok 1000 lines

Test #16:

score: 0
Accepted
time: 1ms
memory: 3584kb

input:

1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXXVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLLLXLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

19234
16950
15902
20150
19077
37
24476
12358
21234
-3110
7153
5447
6546
20984
21841
12194
1052
7713
17319
13155
6833
12468
6611
12732
14127
8492
19363
16077
10707
16437
9915
645
27042
11925
8081
16112
14907
6756
22190
17515
-2647
9445
19642
13400
19042
1626
21432
19574
-1535
18768
8436
12819
17790
1...

result:

ok 1000 lines

Test #17:

score: 0
Accepted
time: 4ms
memory: 3968kb

input:

1
DXCMLLVMXVMXXDDIMLVMLDCCIDCDILMIXIXXMIMIXLLMIXIMMMICMXXCMCCIXCXVIMXMDDIDMLXDDLVVLMIDDLLCXLDXLIDDIXLMLDMICVCCLXCCMMCDMCDVXDXVXDVVVVLXICICXVDLCLLCIVLIILMVLMDIMLXILIXICDDMVICLXCDIVXIIIXVLICIDCCMIDXCILDIDXLCXXVVCXLDMXDXILMDCMILDLILLILCIMXVDCMIVIVVDXXMXXXMCDVIXXVMIXDLXXVIIXIXDCCLCDLMCVDMVIXIDXDMMMCILXL...

output:

13944105

result:

ok single line: '13944105'

Test #18:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14229207

result:

ok single line: '14229207'

Test #19:

score: 0
Accepted
time: 0ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14254584

result:

ok single line: '14254584'

Test #20:

score: 0
Accepted
time: 5ms
memory: 3968kb

input:

1
DXVXIMDIIVVDMLIDMICVDXILMMMIIIDVXVLIXCXXXCIVXLCVXVIIXCVLLIIXMXVDDXDCCDDMLXDXMLXVIXMLIXCXVIMLVILMMIXMDCDCLIMLLCVMDVMCMIMXDIXDIIXVIXCIXVDLILMCLCXVXLICLXXLLXMVLIDXCLMDIDXXXCLCIMIMDCXILLCVXILDXDIXVXIILCDXDXCVLXCLICIVDIIMMLLVDLVXXMLCMDIVDDCCCDXXILVMDIVCDDDLLLLXMMDDDMIDLILDLXLLMVMLMCCMIDMMCILCDVCCIXIMLI...

output:

14449271

result:

ok single line: '14449271'

Test #21:

score: 0
Accepted
time: 0ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14128921

result:

ok single line: '14128921'

Test #22:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14338954

result:

ok single line: '14338954'

Test #23:

score: 0
Accepted
time: 4ms
memory: 3968kb

input:

1
CCIDCLLDMMVCILDVCLDCDCXVDMMXMCLIIXXIVVIVXVVXXDDILDMXMCXDXLXIILLCCVLDXXXMCXXIDVLDDXIVCIXXVCXCVXCLVVILVIXLVXMXMCVDIMVXMDMXLIIIVVIDDVCXIXVIVIMXMMVDIVCXXCMMXMMLMCIXXDIDIIVXMLIVCCCVCDCIXVCCDVLLLLLMCVLDIDXCVLMVDCMDCLMIVXIVDVCVCXIXVMCLDMVVMXCLMLDDDICIIIVXCMMMIICIDIXXIDCLLDIDMXDIDVDLMIVDCLVMMIVIVDVICCXMIC...

output:

14299443

result:

ok single line: '14299443'

Test #24:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14341750

result:

ok single line: '14341750'

Test #25:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14714300

result:

ok single line: '14714300'

Test #26:

score: 0
Accepted
time: 4ms
memory: 3968kb

input:

1
VVDXDLIXVXLIXLVCDMLMXVLIDIMCMLCXVMVMIVXCMMLDDIXDVMVDILLLIDCLMICIMCDCCCVMVMCLLXCXMVDCDXMMDVCMCMIMXMDCILMCDCXCIMDXICMVIDXMXLXMXMXIXLVCICCMCMXCMXVDCCCDIMDDLVLXCIXCCVXVMXCIXVLDMICIDLCLXDMCCVDDVLLLXDVDDCXCVXIIDXVLXVVXLVCCXIXLDLCVIMVIIIXMCDXIICXVIMMIMMIVDCLILLLICXLLMDDLVCVDMDDCIDMLIIXCVMCILMVDLVMXDMXDCM...

output:

14171957

result:

ok single line: '14171957'

Test #27:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14068082

result:

ok single line: '14068082'

Test #28:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14402529

result:

ok single line: '14402529'

Test #29:

score: 0
Accepted
time: 4ms
memory: 3968kb

input:

1
VVIMDVDVDXCIXVILICCVIXLCDLDMDLLXLLXLXMVLVLMXLIVVMIXIVDXVXIVXDMXLXCICDXDXIMDDVMXMMLVXXDLCMMIVIMLMMDIIMCXXIVVDDIXCMMXDVLCMCMDDILCCIIILVLDXMICXILIDLDVIDVMCLLXDDLIMDICXVIMMXILCCVCVVVDMMMXDXCCXMVDLVICLIDIIDVLDCCMIDDDLMCLXVVLVMMIIVLLLLVMXXMMDILVXILCDCVCMVMDDDDCIILVLVMXIIVLMDILMVVXDXIMMCVCXXLXXDXVCDMIIVI...

output:

14288134

result:

ok single line: '14288134'

Test #30:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14551276

result:

ok single line: '14551276'

Test #31:

score: 0
Accepted
time: 0ms
memory: 3968kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

14409053

result:

ok single line: '14409053'

Test #32:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

1
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

output:

-199800

result:

ok single line: '-199800'

Test #33:

score: 0
Accepted
time: 0ms
memory: 3968kb

input:

1
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD...

output:

-149998500

result:

ok single line: '-149998500'

Test #34:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

1
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...

output:

300000000

result:

ok single line: '300000000'