Submit solution
Points:
20 (partial)
Time limit:
1.0s
Memory limit:
32M
Authors:
Problem type
Allowed languages
Python
Problem Statement
You are given a non-negative integer , converts it into Roman numeral.You may assume that the integer is in the range of 1..3999.
See this site for an explanation.
Input Specification
The first line of the input gives the number of test cases, , test cases follow. Each test case consists of a line.
The line contains a non-negative integer .
Limits
Memory limits: 32MB.
Time limits: 1 second.
Test Set 1
Sample Case.
Test Set 2
Test Set 3
Test Set 4
Output Specification
For each test case, output one line containing Case #x: y
, where is the case number(starting from 1) and is the number represented in Roman numeral.
Sample Input
2
9
5
Sample Output
Case #1: IX
Case #2: V
Hint
dictionary
roman numerals
Comments