import java.math.BigInteger;
import java.util.Scanner;
public class Main{
public static void main(String[] argc) {
Scanner cin=new Scanner(System.in);
while(cin.hasNext()){
BigInteger a=cin.nextBigInteger();
String b=cin.next();
BigInteger c=cin.nextBigInteger();
if(b.equals("+")) System.out.println(a.add(c));
else if(b.equals("-")) System.out.println(a.subtract(c));
else if(b.equals("*")) System.out.println(a.multiply(c));
else if(b.equals("/")) System.out.println(a.divide(c));
}
}
}
C++实验题——大数类 tzc
最新推荐文章于 2024-09-14 14:51:04 发布