View Code of Problem 3689

import java.util.Scanner;
import java.math.BigInteger;

public class Main
{
  	public static void main(String[] args)
        {
          Scanner input=new Scanner(System.In);
          int i=nextInt();
          for(int t=0;t<i;t++)
          {
            BigInteger a=input.nextBigInteger();
            BigInteger b=input.nextBigInteger();
            System.out.println("Case #"+(t+1)+":");
            System.out.println(a.subtract(b));
          }
        }
}
/*
Main.java:8: error: cannot find symbol
          Scanner input=new Scanner(System.In);
                                          ^
  symbol:   variable In
  location: class System
Main.java:9: error: cannot find symbol
          int i=nextInt();
                ^
  symbol:   method nextInt()
  location: class Main
2 errors
*/

Double click to view unformatted code.


Back to problem 3689