使用java的库函数BigInteger:
public String solve (String s, String t) { // write code here BigInteger ss = new BigInteger(s); BigInteger tt = new BigInteger(t); return ss.multiply(tt).toString(); }
public String solve (String s, String t) { // write code here BigInteger ss = new BigInteger(s); BigInteger tt = new BigInteger(t); return ss.multiply(tt).toString(); }