Roman To Integer
CodeChefOpen on judge ↗
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol -> Value I -> 1 V -> 5 X -> 10 L -> 50 C -> 100 D -> 500 M -> 1000 For example, two is written as II in Roman numeral, just two one's added together. Twelve is written as, XII, which is simply
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start