Please enter your email address or userHandle.
Given an string in roman no format (s) your task is to convert it to integer .
The first line of each test case contains the no of test cases T. Then T test cases follow. Each test case contains a string s denoting the roman no.
For each test case in a new line print the integer representation of roman number s.
1<=roman no range<4000
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.