#P3601. 线性函数取模的最小值 (Min of Mod of Linear)
线性函数取模的最小值 (Min of Mod of Linear)

线性函数取模的最小值 (Min of Mod of Linear)
时间限制:10 秒
| ⚡ 最快 (Fastest) | 🐙 GitHub | 📖 论坛 (Forum) |
|---|
题目描述 (Problem Statement)
每个测试点包含 组数据。
给定 。请输出 。
约束条件 (Constraints)
输入 (Input)
14
1 13 10 11
2 13 10 11
3 13 10 11
4 13 10 11
5 13 10 11
6 13 10 11
7 13 10 11
8 13 10 11
9 13 10 11
10 13 10 11
100 13 10 11
31415 92653 58979 32384
31415 9265358 9793 2384
1000000000 1000000000 999999999 999999999
11
8
5
2
2
2
2
2
0
0
0
1
24
0