Golf Bot

题意翻译

有一个长为 $N$ 的数组 $k$ 与一个长为 $M$ 的数组 $d$,求出 $d$ 数组中能被 $\le 2$ 个 $k$ 数组中的数相加表示出来的数有多少个。 **本题多组数据。** $1\le N,M,k_i,d_i\le 2\times 10^5$。

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=861&page=show_problem&problem=4744 [PDF](https://uva.onlinejudge.org/external/128/p12879.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12879/36b9d13e530eac87a0c10291f538c33b2a530c2a.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12879/8e90a3d2ef56f7fbb15cffe19f76a1e347645dc5.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12879/2e292d5f40c765cdd65774cfe1befe8593b23cf8.png)

输入输出样例

输入样例 #1

3
1
3
5
6
2
4
5
7
8
9

输出样例 #1

4