Help me in solving LBJ211 problem

It is resolved. Thank you

@swapnil_1994
Just few logical mistakes.
I have corrected it in your code.
Hope u will get it.

import java.util.Scanner;

class Codechef
{
	public static void main (String[] args)
	{
		Scanner read = new Scanner(System.in);
		
		int t = read.nextInt();
		for(int i=0; i<t; i++)
		{
    		int n = read.nextInt();
    		int m = read.nextInt();
    		// Update the code below this line to solve this problem
    		if(n%m == 0&&(n/m)%2==0){
    		    System.out.println("Yes");
    		    
    		}
    		else {
    		    System.out.println("No");
    		}
    	
		}
	}
}

Thank you so much!