和为数组内另一数
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.
说明
你有一个数组,现在问你能否从数组中选择三个不同的数,使得其中两个数的和等于第三个数。
输入输出
输入
第一行一个正整数表示数组元素个数;
第二行个正整数表示这个数组。
输出
如果存在这样的三个正整数,输出一条算式,其中且都是数组中的元素。如果有多条算式满足条件,输出和最小的;如果仍有多条,输出最小的。
如果不存在,输出"No"。
Samples
5
2 5 4 6 3
5=2+3
5
8 5 4 6 7
No
数据范围
对的数据,
对的数据,,请使用long long数据类型。
2023暑假语法组测试
- Status
- Done
- Rule
- IOI
- Problem
- 8
- Start at
- 2023-8-17 8:30
- End at
- 2023-8-17 11:30
- Duration
- 3 hour(s)
- Host
- Partic.
- 32