HDOJ2075 A|B? (水题)

来源:互联网 发布:js数组指定位置替换 编辑:程序博客网 时间:2024/06/15 02:08

HDACM2075
注意一下范围就好

import java.util.Scanner;public class Main{    public static void main(String[] args) {        Scanner sc = new Scanner(System.in);        int n = sc.nextInt();        while (n-->0) {            long a = sc.nextLong();            long b = sc.nextLong();            if (a%b==0) {                System.out.println("YES");            }else {                System.out.println("NO");            }        }    }}