roman数是按求和来计量的,而阿拉伯是按加权来计量(不同进制,权值不同)。 roman->int class Solution { public: int romanToInt(string s) { if(s.empty(