1. 程式人生 > >oj---大數運算

oj---大數運算

java system new () col ner scanner sca scan

九度oj1037

import java.util.Scanner;
import java.math.*;
import java.text.*;
public class Main{
    public static void main(String[] args){
        Scanner cin = new Scanner(System.in);
        BigInteger a,b;
        while(cin.hasNext()){
            a=cin.nextBigInteger();
            b=cin.nextBigInteger();
            System.
out.println(a.add(b)); System.out.println(a.subtract(b)); System.out.println(a.multiply(b)); } } }

oj---大數運算