大数相乘

import java.util.Scanner;
/***
 *  大数相乘
 */
public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s1 = sc.next();
    String s2 = sc.next();
    int[] arr1 = new int[s1.length()];
    int[] arr2 = new int[s2.length()];
    for(int i=0;i0;i--) {
      int temp = res[i];
      res[i]=(temp+bit)%10;
      bit = (temp+bit)/10;
    }
    String str = "";
    for(int i=0;i

你可能感兴趣的:(大数相乘)