B. 3-SUM 问题

    Type: Default 1000ms 256MiB

3-SUM 问题

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

  给定A,B,CA, B, C三个数组(长度依次为n,m,pn, m, p),求出所有满足A[i]+B[j]=C[k]A[i] + B[j] = C[k]的组合,并按照A[i],B[j],C[k]A[i], B[j], C[k]的顺序保存每一组值。

Format

  你所提交的代码应具有如下形式

#include "Solution.h"

vector<vector<int>> Solution::three_sum(vector<int> &A, vector<int> &B, vector<int> &C) {
    // 请在这里完成你的代码

}

实验五 贪心算法

Not Claimed
Status
Done
Problem
5
Open Since
2024-10-26 14:00
Deadline
2024-10-26 18:00
Extension
144 hour(s)