急求翻译英文!!

Problem11:ScavengerHunt[DamonDoucet,2010]FarmerJohnhasscatteredtreatsforBessieatspeci... Problem 11: Scavenger Hunt [Damon Doucet, 2010]

Farmer John has scattered treats for Bessie at special places in
the pasture. Since everyone knows that smart cows make tasty milk,
FJ has placed the treats at locations that require Bessie to think.
He has given her two numbers, P and Q (1 <= P <= 6,000; 1 <= Q <=
6,000), and she has to check every point in the pasture whose
x-coordinate is a factor of P and whose y-coordinate is a factor
of Q to find her treat.

Suppose FJ gives Bessie P = 24 and Q = 2. Here are all of their
respective factors:

P = 24 => 1, 2, 3, 4, 6, 8, 12, 24
Q = 2 => 1, 2

Bessie would thus check grid locations: (1, 1), (1, 2), (2, 1), (2,
2), (3, 1)...

Help Bessie by printing all of the points she ought to check.

PROBLEM NAME: scavhunt

INPUT FORMAT:

* Line 1: Two space separated integers: P and Q

SAMPLE INPUT (file scavhunt.in):

24 2

OUTPUT FORMAT:

* Lines 1..?: A complete list of unique pairs of space-separated
integers sorted by the first number and, if tied, the second
number: a factor of P followed by a factor of Q

SAMPLE OUTPUT (file scavhunt.out):

1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
6 1
6 2
8 1
8 2
12 1
12 2
24 1
24 2
展开
小颖绮舞
2010-07-28 · TA获得超过862个赞
知道小有建树答主
回答量:167
采纳率:0%
帮助的人:123万
展开全部
约翰已经分散的点心给农民在特别的地方。贝
草地上。大家都知道,聪明的母牛使可口的牛奶,
把FJ为需要治疗的位置来思考。贝
他给她的两个编号,P和Q(1)和(2)< = P < = 6000;1 < =问<
她拥有6000),检查牧场上每一点的
x-coordinate是一个因素,其纵坐标是磷的因素
她的问题找到治疗。

假设FJ为P = 24,给贝茜问= 2。这里是他们所有的人
各自的因素,
匿名用户
2010-07-28
展开全部
约翰已经将点心给了在特别的地方的分散的农民
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
怪咖青年不言弃
2020-02-03 · TA获得超过1.6万个赞
知道答主
回答量:9.2万
采纳率:2%
帮助的人:5345万
展开全部
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

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

类别

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

说明

0/200

提交
取消

辅 助

模 式