数组元素的目标和
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
共一行,包含两个整数 和 。
Samples
4 5 6
1 2 4 7
3 4 6 8 9
1 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