【模板】裴蜀定理
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.
题目描述
给定一个包含 个元素的整数序列 ,记作 。
求另一个包含 个元素的待定整数序列 ,记 ,使得 且 尽可能的小。
输入格式
第一行一个整数 ,表示序列元素个数。
第二行 个整数,表示序列 。
输出格式
一行一个整数,表示 的前提下 的最小值。
2
4059 -1782
99
提示
对于 的数据,,,且 序列不全为 。
20251127提高选修课作业——数论
- Status
- Done
- Problem
- 9
- Open Since
- 2025-11-27 19:00
- Deadline
- 2026-1-6 23:59
- Extension
- 24 hour(s)