This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Program | |
| { | |
| public static void hallow_prten(int totRow, int totCols){ | |
| for (int i=1; i<=totRow; i++){ | |
| for (int j=1; j<=totCols; j++){ | |
| if (i==1 || i==totRow || j==1 || j==totCols){ | |
| System.out.print("*"); | |
| } else { | |
| System.out.print(" "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cook your dish here | |
| for _ in range(int(input())): | |
| n,x = map(int,input().split()) | |
| if n<=x: | |
| if x%n==0: | |
| print("Yes") | |
| else: | |
| print("No") | |
| else: |