import java.math.BigInteger; import java.util.*; public class Main{ public static void main(String[], args){ Scanner input = new Scanner(System.in); int t = input.nextInt(); int k = 1; for(int i = 0 ; i < t; i++){ BigInteger a = input.nextBigInteger(); BigInteger b = input.nextBigInteger(); System.out.println("Case #"+ k++ +":"); System.out.println(a.subtract(b)); } } } /* Main.cc:1:1: error: 'import' does not name a type; did you mean 'short'? import java.math.BigInteger; ^~~~~~ short Main.cc:2:1: error: 'import' does not name a type; did you mean 'short'? import java.util.*; ^~~~~~ short Main.cc:4:1: error: expected unqualified-id before 'public' public class Main{ ^~~~~~ */ |
Double click to view unformatted code.