Processing math: 100%
Unammed - MarisaOJ: Marisa Online Judge

Unammed

Time limit: 1000 ms
Memory limit: 256 MB
Given two arrays A and B, both consisting of n integers, and an integer x. Count the number of pairs i,j such that Ai+Bj=x. ### Input - The first line consists of two integers n,x. - The second line contains n integers Ai. - The third line contains n integers Bi. ### Output - Output an integer as the answer. ### Constraints - 1≤n≤105. - 0≤|Ai|,|Bi|,x≤109. ### Sample test Input 56123910-35321 Output: 3