首页 > 试题广场 >

罗马数字转化为整数

[编程题]罗马数字转化为整数
  • 热度指数:8370 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M
  • 算法知识视频讲解
请将给出的罗马数字转化为整数
保证输入的数字范围在1 到 3999之间。
示例1

输入

"MCMXCVI"

输出

1996
头像 卫宫士郎红A
发表于 2020-07-17 14:14:00
请将给出的罗马数字转化为整数保证输入的数字范围在1 到 3999之间。 Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 这道题会有 展开全文