两数之和
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
小土刚学会编程,有一天看到一个求和的问题,百思不得其解,你能帮他编程解决这个问题吗?
Description
给定4个整数a,b,c,d,以及目标值t,请找出a,b,c,d中的两个整数,满足这两个整数的和为目标值t,并按从小到大的顺序输出这两个整数。 你可以假设只存在一个有效答案。
Format
Input
一行,5个整数,前四个为a,b,c,d,最后一个为目标值t。
Output
两个整数 从小到大的顺序输出,如果相等则不Care。
Samples
1 2 3 4 7
3 4
Limitation
1s, 1024KiB for each test case.
非常好看
- Status
- Done
- Rule
- Ledo
- Problem
- 40
- Start at
- 2025-1-24 16:45
- End at
- 2025-4-18 0:45
- Duration
- 2000 hour(s)
- Host
- Partic.
- 17