英文翻译15

news/2024/9/23 1:39:22/

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 integers (<= 1000000).

输出

Two integers A and B.

翻译:

给定N个数的序列。找到序列中的两个不同的数A和B并且A和B的和等于K

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

第二行:两个数A和B


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

相关文章

英文翻译自然数

题目编号 &#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…

[绍棠] iPhone X 适配指南 (官方翻译版)

Phone X iPhone X包括一个大型&#xff0c;高分辨率&#xff0c;圆形的边缘到边缘的显示器&#xff0c;提供了一个沉浸式&#xff0c;内容丰富的体验&#xff0c;从未像以前那样。 屏幕尺寸 在纵向方向上&#xff0c;iPhone X上的显示屏的宽度与iPhone 6&#xff0c;iPhone 7和…

iPhone X 苹果官方人机交互指南 手动翻译

苹果的发布会在昨晚举行&#xff0c;新的iPhoneX具体的分辨率、适配风格大家可能有一些疑惑&#xff0c;下面是摘自苹果人机交互指引页面对iPhoneX的介绍&#xff0c;大家可以先了解一下 iPhone X概览 iPhone X拥有一块超视网膜、5.8英寸&#xff0c;1125 2436分辨率的圆角全面…

[C++ Question]声明的类其成员是未定义值

之前一直以为 class A { public: int a; }A a; A a&#xff1b;编译器会自动调用默认构造函数&#xff0c;然后里面的成员函数会进行默认初始化&#xff0c;但这是声明不是定义&#xff0c;编译器只会给你默认生成个构造函数&#xff0c;并不会主动调用它&#xff0c;你还是得…

阿里云国际站代理商:阿里云是干什么的?阿里云app和建网站有什么关系?

标题&#xff1a;阿里云是干什么的&#xff1f;阿里云app和建网站有什么关系&#xff1f;   一、解析阿里云的业务范围   阿里云&#xff0c;作为阿里巴巴集团的关键业务板块&#xff0c;主要提供云计算、大数据、人工智能及其他信息化服务。通过其全球网络&#xff0c;阿里…