import java.util.*; public class Solution { /** * * @param s string字符串 * @return int整型 */ public int romanToInt (String s) { // write code here int sum = 0; int preNum = getValue(s.charAt(0)); for(int i = 1;i < s.length(); i ++) { ...