C++帮忙解释一下题目意思

ProblemDescriptionAssociationforCouplesMatch(ACM)isanon-profitorganizationwhichisenga... Problem Description
Association for Couples Match (ACM) is a non-profit organization
which is engaged in helping single people to find his/her other half. As
November 11th is "Singles Day", on this day, ACM invites a large group of
singles to the party. People round together, chatting with others, and matching
partners. There are N gentlemen and M ladies in the party, each gentleman should
only match with a lady and vice versa. To memorize the Singles Day, ACM decides
to divide people into 11 groups, each group should have the same amount of
couples and no people are left without the groups. Can ACM achieve the goal?
Input
The first line of the input is a positive integer T. T is the
number of test cases followed. Each test case contains two integer N and M
(0<=N, M<=10^1000), which are the amount of gentlemen and ladies. It is
worth notice that N and M are really huge. You are suggested to input the number
with string.
Output
For each test case, output “YES” if it is possible to find a
way, output “NO” if not.
Sample Input
3
1 1
11 11
22 11
Sample Output
NO
YES
NO
展开
 我来答
byzxybd
2012-08-28 · TA获得超过455个赞
知道小有建树答主
回答量:731
采纳率:100%
帮助的人:414万
展开全部
情侣拍拖会,是一个非盈利性组织。从事帮助单身的男女寻找另一半,增11月11日这天(光棍节)AMC协会邀请众多的单身来参加活动。分轮次的配对聊天,为了纪念光棍节,把人分成11组,参会人N个男生和M个女生,1对1匹配,每个组应具有相同数量的男女。
输入的第一行是一个正整数T.
T是随后的测试用例数。
每个测试案例包含两个整数N和M
(0 <=N,M <=10^ 1000),这是量的绅士和淑女。这是
值得注意的N和M是非常巨大的。建议您输入数字
字符串。
匿名用户
2012-08-28
展开全部
密密麻麻洋文!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式