QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#535940#8048. Roman Masterucup-team1365#TL 121ms7684kbC++201.1kb2024-08-28 16:55:302024-08-28 16:55:31

詳細信息

Test #1:

score: 100
Accepted
time: 121ms
memory: 7684kb

input:

3
II
IVI
VIIIIIV

output:

2
16
634

result:

ok 3 lines

Test #2:

score: -100
Time Limit Exceeded

input:

100000
VVIVVVVVII
VVVIIIIVVI
IVIIVIIIIV
VVVVVIIVVI
IIIVIVVVIV
VIVIIIIIVI
VVIIVVIVVI
IVVVIVVVVV
VIIVVVVIVV
VIIIIVVVVV
VVVVVVIVIV
VIVIIIVVVI
VIIIVIVVVI
VIIIIVVIIV
VIVVVIIVII
IIIIIVIIVI
IIIIVVVVII
IVIIVVIIVI
IVVIVVIIIV
IVVVIIIVIV
IIIIVIIIVV
VVVVVIVIIV
VVVIIIIVVV
VIVVIIIIVI
VIIIIIIIIV
VIVIVVVIVV
IVIIIVI...

output:

5545557
555346
16434
5555646
244554
6736
564546
45545555
6455545
5345555
55555544
67456
74456
53464
54577
2376
34557
16476
45474
45744
13745
5555664
5553455
54636
6334
5445545
4363
27645
34645
54746
55556455
46345
3746
74546
6633
5455544
6343
4776
53666
1455445
555555556
44444
456445
5733
4743
54555...

result: