和为0
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.
Background
给定一个包含个整数的数组,判断中是否存在三个元素,满足?找出所有满足条件且不重复的三元组。
Format
Input
第一行一个整数
第二行个整数
Output
每行输出一个三元组, 较小元素更靠前输出, 如果没有方案, 则输出-1
Samples
6
-1 0 1 2 -1 -4
-1 -1 2
-1 0 1
Limitation
2023/03/25 双指针算法-随堂测验
- Status
- Done
- Rule
- Ledo
- Problem
- 10
- Start at
- 2023-3-25 10:00
- End at
- 2023-3-25 11:00
- Duration
- 1 hour(s)
- Host
- Partic.
- 28