摘要: class Solution { public: int romanToInt(string s) { int res = 0; unordered_map<char, int> m{{'I', 1}, {'V', 5}, {'X', 10}, {'L', 50}, {'C', 100}, {'D' 阅读全文
posted @ 2017-02-04 23:38 王坤1993 阅读(122) 评论(0) 推荐(0)
摘要: class Solution { public: string intToRoman(int num) { string res = ""; vector<int> val{1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1}; vector<s 阅读全文
posted @ 2017-02-04 00:17 王坤1993 阅读(173) 评论(0) 推荐(0)