LightOJ 1214 Large Division 水题
java有大数模板
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
import java.util.Scanner; import java.math.*; public class Main { public static void main(String[] args) { Scanner cin =new Scanner(System.in); int T=cin.nextInt(); BigInteger c=BigInteger.valueOf(0); for(int i=1;i<=T;++i){ BigInteger a=cin.nextBigInteger(); BigInteger b=cin.nextBigInteger(); b=b.abs(); a=a.mod(b); System.out.print("Case "+i+": "); if(a.compareTo(c)==0)System.out.println("divisible"); else System.out.println("not divisible"); } } }