题目链接:https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH15
题目: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个数,你的任务就是找到两个不同的数相加等于给定的数k
输入:第一行两个数,第一个数为数列的大小n,第二个数为k。第二行为数列的n个数。