寒假程序翻译2.08
https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH15
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.
(给定一行N个数字。找到在这行数字里不相等的数字A和B,其中他们相加需要等于K。)
输入:
First line: two positive integers N (N <= 1000) and K (K <= 1000000). Second line: N positive integers (<= 1000000).
第一行:两个正整数N和K
第二行:N个正整数
输出:
Two integers A and B.
(两个整数A和B)
寒假程序翻译2.08最先出现在Python成神之路。
共有 0 条评论