我靠,刚开始就想到这个思路了,想到数组,想到hashmap了,关键min = min+ (num[length-j-1]*money[j]);这一步时我思维定式在将 String[] s2 = str2.split(" ");这个数组扩充,而不是直接求和。还是太嫩了。