英文翻译26

news/2024/10/24 1:58:11/

OpenJudge - 31:Candies

描述

There are N bags. Each bag has some candies. You can take some of the bags. the total number of candies in these bags should be a multiple of K because you want to divide the candies equally between K friends. How many candies can you take at most?

输入

First line: two positive integers N (N <= 100) and K (K <= 1000).
Second line: N positive integers (<= 1000).

输出

One integer.

翻译:

有N个书包,每个书包都有一些糖果。你可以带一些包。这些包里糖果的总数应该是K的倍数因为你想要把这些糖果平分给K个朋友。你最多可以带多少糖果呢?

输入:

第一行:两个正整数N和K。

第二行:N个正整数。

输出:

一个数。


http://www.ppmy.cn/news/765311.html

相关文章

专利常用语英文翻译

专利翻译词汇手册 是否将当前网页翻译成中文 网 页 翻 译 中英对照 关闭 专利轩 1月10日 小伙伴们经手海外专利申请的案子时&#xff0c;经常遇到翻译术语难题&#xff0c;翻译软件往往不能给出贴切的专业翻译&#xff0c;有很 多新手甚至得阅读大量…

腾讯翻译君在线翻译怎么翻译整个文件_7款好用的英文翻译软件推荐

如今&#xff0c;不管是工作还是学习&#xff0c;很多时候我们都要接触英文&#xff0c;可能是为了使用一款小众的软件&#xff0c;也可能是一篇好文章&#xff0c;也可能是一部视频&#xff0c;所以手里常备一些好用的翻译软件是很有必要的&#xff0c;在本文中来和大家推荐一…

中文如何翻译成英文?手机中英文一键翻译超简单

今天跟大家分享的主题是——如何将中文翻译成英文&#xff0c;中英文一键翻译的简单方法。 我们都知道&#xff0c;中文翻译成英文或将中英文进行互译&#xff0c;前提条件都是英文要好&#xff0c;但语言学习是一件很需要耐心和时间的事&#xff0c;在学习的过程中&#xff0c…

英文翻译15

OpenJudge - 15:Sum is K 描述 Given a sequence of N numbers. Find different numbers A and B in the sequence so that the sum of A and B equals to K. 输入 First line: two positive integers N (N < 1000) and K (K < 1000000). Second line: N positive in…

英文翻译自然数

题目编号 &#xff1a;Exp04-Enhance03&#xff0c;freshman-1006 题目名称&#xff1a;英文翻译自然数 题目描述&#xff1a;按常规英文输出1000以内自然数的英文读法。 输入&#xff1a;每个测试输入包含 1 个测试用例&#xff0c;给出正整数 n&#xff08;0< n <…

英文翻译18

OpenJudge - 18:Coins 描述 There are N kinds of coins. Each kind of coins has a value V and a weight W. Tony wants to go traveling. Unfortunately, he can only carry coins of which the total weight is not greater than K. How much total value of coins can h…

英文翻译16

OpenJudge - 16:Maximum Sum Not Exceeding K 描述 Given N numbers, find two different numbers from them such that the sum of the two numbers is maximum but not exceeding K. 输入 First line: two positive integers N (N < 1000) and K (K < 1000000). Se…

英文翻译12

OpenJudge - 12:Maximum Product of Sequence 描述 Find a sequence of M positive numbers with the maximum product, while the sum of them is N. 输入 Two positive integers M (M < 10) and N (N < 100). 输出 One line contains M integers. 翻译&#xff…