Given an integer num, convert it to a roman numeral.
Roman numerals are denoted by a combination of some symbols.
| Value | Symbol |
|---|---|
| 1 | I |
| 5 | V |
| 10 | X |
| 50 | L |
| 100 | C |
| 500 | D |
| 1000 | M |
num: 10
Result: “X”
s: 6
Result: “VI”
s: 12
Result: “XII”
Read about Integer to Roman conversion here.
The first line contains an integer ‘T’ denoting the number of test cases.
For each test case, the input contains a line with an integer ‘num’.
For each test case, the output contains one line with a string ‘s’ denoting the roman denotation of num.
3
15
3610
20
XV
MMMDCX
XX
1 <= T <= 100
1 <= num <= 4000