随笔分类 - 数据结构
摘要:You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries consisting of in
阅读全文
摘要:题目描述 有两个长度都是N的序列A和B,在A和B中各取一个数相加可以得到N^2个和,求这N^2个和中最小的N个。 有两个长度都是N的序列A和B,在A和B中各取一个数相加可以得到N^2个和,求这N^2个和中最小的N个。 输入 第一行一个正整数N; 第二行N个整数Ai,满足Ai<=Ai+1且Ai<=10
阅读全文

浙公网安备 33010602011771号