BIRTHDAY PARTY
SOLUTION FOR BIRTHDAY PARTY HACKEREARTH Mr. X's birthday is in next month. This time he is planning to invite N of his friends. He wants to distribute some chocolates to all of his friends after party. He went to a shop to buy a packet of chocolates. At chocolate shop, each packet is having different number of chocolates. He wants to buy such a packet which contains number of chocolates, which can be distributed equally among all of his friends. Help Mr. X to buy such a packet. Input: First line contains T, number of test cases. Each test case contains two integers, N and M. where is N is number of friends and M is number number of chocolates in a packet. Output: In each test case output "Yes" if he can buy that packet and "No" if he can't buy that packet. Constraints: 1<=T<=20 1<=N<=100 1<=M<=10^5 SAMPLE INPUT 2 5 14 3 21 SAMPLE OUTPUT No Yes SOLUTION : #include<stdio.h> int main(){...
I am happy to find this post Very useful for me, as it contains lot of information
ReplyDeleteGuest posting sites
Education
Nice,I have already bookmarked your blog.
ReplyDeleteManual Testing Training in Chennai
Manual Testing Training in Velachery
Manual Testing Training in Anna Nagar
Mobile Testing Training
Mobile Appium Training in chennai
Mobile Testing Training in Porur
Manual Testing Training in Tambaram
testing courses in chennai
I am happy to find this post Very useful for me
ReplyDeleteDevOps Training in Chennai
Splunk Training in Chennai