最近做的都是英文题,正好顺手测试一下各翻译网站的翻译能力。

原文

Farmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering problems, all the stalls in the new barn are different. For the first week, Farmer John randomly assigned cows to stalls, but it quickly became clear that any given cow was only willing to produce milk in certain stalls. For the last week, Farmer John has been collecting data on which cows are willing to produce milk in which stalls. A stall may be only assigned to one cow, and, of course, a cow may be only assigned to one stall.
Given the preferences of the cows, compute the maximum number of milk-producing assignments of cows to stalls that is possible.

The input includes several cases. For each case, the first line contains two integers, N (0 <= N <= 200) and M (0 <= M <= 200). N is the number of cows that Farmer John has and M is the number of stalls in the new barn. Each of the following N lines corresponds to a single cow. The first integer (Si) on the line is the number of stalls that the cow is willing to produce milk in (0 <= Si <= M). The subsequent Si integers on that line are the stalls in which that cow is willing to produce milk. The stall numbers will be integers in the range (1..M), and no stall will be listed twice for a given cow.

For each case, output a single line with a single integer, the maximum number of milk-producing stall assignments that can be made.

有道翻译

农民约翰完成他的新谷仓就在上周,连同所有最新的挤奶技术。不幸的是,由于工程问题,所有新谷仓的摊位是不同的。第一周,农夫约翰随机分配牛停滞,但它很快就明确表示,任何给定的牛只愿意在某些摊位产奶。上周,农夫约翰一直在收集数据这牛愿意摊位的产奶。失速可能只分配给一个牛,,当然,一头牛可以只分配给一个摊位。
由于牛的偏好,计算出最大数量的乳用牛摊位的作业是可能的。
输入包括几个案例。对于每个案例,第一行包含两个整数,N(0 < = N < = 200)和M(0 < = < = 200)。N是农民约翰牛的数量和M是摊位的数量在新谷仓。以下N行对应于一个单一的牛。在直线上的第一个整数(Si)的摊位数量愿意生产牛奶的(0 < =如果< = M)。随后Si整数在直线上的摊位,愿意生产牛奶。摊位号码将整数范围(1 . . M),也没有停滞将上市对于一个给定的牛的两倍。
对于每个案例,用一个整数,输出一行乳用摊位分配的最大数量,可以。

百度翻译

农民约翰刚刚完成他的新谷仓刚刚上周,完成了所有最新的挤奶技术。不幸的是,由于工程问题,所有的摊位在新谷仓是不同的。第一周,农民约翰随机分配奶牛到摊位,但很快就清楚了,任何给定的奶牛只愿意生产牛奶在某些摊位。在过去的一周,农民约翰一直在收集数据,哪些奶牛愿意生产牛奶,其中摊位。一个摊位只能分配给一头牛,当然,一头牛只能被分配到一个摊位。
考虑到奶牛的喜好,计算奶牛产奶任务的最大数量,这是可能的。
输入包括几个案例。对于每一种情况,第一行包含两个整数,n(0 = n = n = 200)和m(0 = m = <)。N是农场主约翰拥有的奶牛数量,M是新谷仓里的摊位数量。下面的N条线对应一头牛。线上的第一个整数(SI)是奶牛愿意生产牛奶的摊位数(0 < = = m)。那一行的后继SI整数是奶牛愿意生产奶的摊位。失速数字将是整数的范围内(1米),并没有摊位将列出两次给定的奶牛。
对于每一种情况下,输出一个单一的行与一个整数,最大数量的牛奶生产摊位分配,可以作出。

谷歌翻译

农夫约翰刚刚在上周完成了他的新谷仓,配备了所有最新的挤奶技术。不幸的是,由于工程问题,新谷仓中的所有摊位都不一样。第一周,农夫约翰随机分配奶牛到摊位,但很快就明白,任何给定的牛只愿意在某些摊位生产牛奶。最近一周,农民约翰一直在收集有关哪些奶牛愿意生产牛奶的数据。摊位可能只能分配给一只母牛,当然,一只母牛可能只能被分配到一个摊位。
考虑到牛的偏好,计算可能的奶牛产奶量的最大数量。

输入包括几种情况。对于每种情况,第一行包含两个整数,N(0 <= N <= 200)和M(0 <= M <= 200)。 N是农夫约翰的牛数,M是新谷仓中的档位数。以下N行中的每一行对应于单个母牛。线上的第一个整数(Si)是牛在(0 <= Si <= M)中愿意生产牛奶的档位数。那条线上随后的Si整数是那只母牛愿意生产牛奶的摊位。停车位数字将是范围(1..M)中的整数,对于给定的母牛,不会将档位列出两次。

对于每种情况,输出单行,单个整数,可以进行的产奶档位分配的最大数量。


以上均为各翻译引擎直接翻译的结果,没有做任何包括标点符号在内的改动。

其中的差别,想必也不用多说了吧。

PS.现在谷歌翻译在墙内是可用的。

PPS.为什么谷歌翻译这么好?相关报道

标签: 翻译

添加新评论