package zjgs; import java.math.BigInteger; import java.util.Scanner; public class test { public static void main(String[] args) { // TODO Auto-generated method stub Scanner s = new Scanner(System.in); int x = s.nextInt(); for(int i= 1;i<=x;i++){ BigInteger a =s.nextBigInteger(); BigInteger b =s.nextBigInteger(); System.out.println("Case #"+i+":"); System.out.println(a.subtract(b)); } } } /* Main.java:4: error: class test is public, should be declared in a file named test.java public class test { ^ 1 error */ |
Double click to view unformatted code.