翻译
Sum is K
1000ms 65536K
描述:
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.翻译:
和是K
描述:
给定一个N个数的序列,在这个序列中找到不同的数A和B让A和B的和等于K。
输入:
第一行:两个正整数N(N<=1000)和K(K<=1000000)。
第二行:N个正整数。
输出:
两个整数A和B。

浙公网安备 33010602011771号