[2024 GDCPC I] 不等式
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.
给定 ,以及 个形如 的条件。问是否有一组正整数 满足所有条件,并且 。如果有,输出 的最小值;如果无解,输出 。
Input
第一行两个整数 。
之后 行,第 行三个整数 ,表示一个限制 。
Output
输出一行一个整数,表示答案。
5 2
1 2 3
3 4 5
8
Notes
和最小的解为 ,和为 。
2024广东省大学生程序设计竞赛(重现赛)
- Status
- Done
- Rule
- XCPC
- Problem
- 10
- Start at
- 2026-10-30 13:00
- End at
- 2026-10-30 18:00
- Duration
- 5 hour(s)
- Host
- Partic.
- 2