| 19 | typedef map<pll,ll> mpll; |
| 20 | typedef map<ll,ll> mll; |
| 21 | int main() |
| 22 | { |
| 23 | ll n,k; |
| 24 | cin>>n>>k; |
| 25 | vll a(n); |
| 26 | mll hash; |
| 27 | mpll pairHash; |
| 28 | vpll result; |
| 29 | for(auto &i:a)cin>>i,hash[i]=1; |
| 30 | for(auto &i:a){ |
| 31 | if(hash.find(k+i)!=hash.end()){ |
| 32 | result.pb(mp(k+i,i)); |
| 33 | } |
| 34 | } |
| 35 | cout<<result.size(); |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected