[HDU] [2075] A|B?

Problem Description

Loading...

Problem Analysis

Small rant: you can’t even set the | symbol as a filename on a computer…
The problem itself is just about divisibility… nothing much to say

cpp
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include<stdio.h>
int main() {
	int n,a,b;
	scanf("%d",&n);
	while(n) {
		scanf("%d %d",&a,&b);
		if(a%b==0)
			printf("YES\n");
		else
			printf("NO\n");
		n--;
	}
	return 0;
}

Loading...