a\b?

Source: Internet
Author: User

a| B?Time limit:1000/1000 MS (java/others) Memory limit:32768/32768 K (java/others)
Total submission (s): 14296 Accepted Submission (s): 10964


Problem description Positive integer A can be divisible by positive integer b, do not know why XHD will study the problem, to help him.
The first line of input data is a data T, which indicates that there is a T group of data.
Each group of data has two positive integers a and B (a,b<10^9).
Output "YES" for each set of input data indicates that it can be divisible, and "no" means that it cannot be divisible.

Sample Input
24 25 3

Sample Output
YESNO

#include <stdio.h> main() {int A,B,N;scanf("%d",&N);  while (N--) {scanf("%d%d",&A,&B); if (A%B==0)Printf("yes\n"); Else Printf("no\n");} return 0;}
[Copy to Clipboard] [Save to File]

a\b?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.