Roman Integers
CodeChefOpen on judge ↗
Chef wants to pass the integer string of length 'L' to his friend, but he is worried that someone might understand what he is sending. So, while sending he replace some of these integers value by roman value. The symbols I, V, X, L, C, D and M represent the decimal values 1, 5, 10, 50, 100, 500 and 1000 respectively Since, chef friend is not so intelligent. So, he ask you for the help. You have
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