#P7521. [省选联考 2021 B 卷] 取模
[省选联考 2021 B 卷] 取模
Description
Given positive integers , please choose three numbers (, , ) such that the value of is maximized.
Input Format
The first line contains an integer , indicating the number of integers.
The second line contains integers, indicating .
Output Format
Output one line with one integer, indicating the answer.
6
4 7 7 5 2 2
6
见附件中的 mod/mod2.in。
见附件中的 mod/mod2.ans。
Hint
For of the testdata, .
For of the testdata, .
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号