lc 2020-11-27
#454
class Solution {
public:
int fourSumCount(vector& A, vector& B, vector& C, vector& D) {
map<int, int> sum1, sum2;
for(int i = 0; i < A.size(); ++i) {
for(int j = 0 ; j < B.size() ; ++ j) {
sum1[A[i] + B[j]] ++;
}
}
for(int
原创
2020-11-27 00:48:09 ·
178 阅读 ·
1 评论