leetcode13 java

public int romanToInt(String s)
{
    int target=0;
    for(int i =0;i 
  

test code : 

int x = one.romanToInt( "MCMXCIV");
System.out.println(x);

你可能感兴趣的:(leetcode13 java)