首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
首页
>
试题广场
>
罗马数字转化为整数
[编程题]罗马数字转化为整数
热度指数:8370
时间限制:C/C++ 1秒,其他语言2秒
空间限制:C/C++ 32M,其他语言64M
算法知识视频讲解
请将给出的罗马数字转化为整数
保证输入的数字范围在
1 到 3999之间。
示例1
输入
"MCMXCVI"
输出
1996
马上挑战
算法知识视频讲解
提交运行
算法知识视频讲解
添加笔记
求解答(0)
邀请回答
收藏(40)
分享
纠错
提交结果有问题?
35个回答
1篇题解
开通博客
卫宫士郎红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. 这道题会有
展开全文
问题信息
字符串
难度:
35条回答
40收藏
16076浏览
热门推荐
通过挑战的用户
查看代码
时七❀
2023-03-08 01:25:05
牛客80527...
2023-01-13 14:22:55
许你在右的年华
2022-09-13 07:42:06
我在人间混日子
2022-08-27 20:12:36
Varus20...
2022-08-20 17:02:34
相关试题
什么是大小端,什么是网络通信字节序?
linux
评论
(1)
无线通信的绕射损耗是什么?
通信原理基础
评论
(1)
DHCP的报文交互过程
计算机网络基础
评论
(1)
下列选项属于HTML5新特性的是()
HTML
评论
(1)
自动管理停车场桩位系统
评论
(1)
罗马数字转化为整数
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题
import java.util.*; public class Solution { /** * * @param s string字符串 * @return int整型 */ public int romanToInt (String s) { // write code here } }
class Solution { public: /** * * @param s string字符串 * @return int整型 */ int romanToInt(string s) { // write code here } };
# # # @param s string字符串 # @return int整型 # class Solution: def romanToInt(self , s ): # write code here
/** * * @param s string字符串 * @return int整型 */ function romanToInt( s ) { // write code here } module.exports = { romanToInt : romanToInt };
# # # @param s string字符串 # @return int整型 # class Solution: def romanToInt(self , s ): # write code here
package main /** * * @param s string字符串 * @return int整型 */ func romanToInt( s string ) int { // write code here }
"MCMXCVI"
1996