Help me in solving TLG problem

My issue

hey could tell me which test cases are not covered in this code .

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc= new Scanner(System.in);
		int t= sc.nextInt();
		int max=0;
		int w=0;
		while(t-->0){
		    int a=sc.nextInt();
		    int b=sc.nextInt();
		    if (Math.abs(a-b)>max){
		        max=Math.abs(a-b);
		        if((a-b)>0){
		            w=1;
		        }else{
		            w=2;
		        }
		    }
		    
		}
		
		System.out.println(w+" "+max);
	}
}

Problem Link: TLG Problem - CodeChef

@jkl21bt109
U have to keep summing up the scores of previous rounds as well and then check for a-b .