摘要: 题目地址:https://leetcode-cn.com/problems/roman-to-integer/ 解题思路: 同理,写的比较丑。 class Solution { public: int romanToInt(string s) { map<char,int > mp; map<cha 阅读全文
posted @ 2020-07-24 16:36 CCxiao5 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 题目地址:https://leetcode-cn.com/problems/integer-to-roman/ 解题思路: 打一个模板然后分情况讨论。写的比较丑。 map<int, string> mp; map<int, string> ::iterator it; class Solution 阅读全文
posted @ 2020-07-24 16:13 CCxiao5 阅读(114) 评论(0) 推荐(0) 编辑