AJ. [省选联考 2021 B 卷] 取模
[省选联考 2021 B 卷] 取模
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.
题目描述
给定 个正整数 ,请你在其中选出三个数 (,,),使得 的值最大。
输入格式
第一行,一个整数 ,表示数字个数。
第二行, 个整数,表示 。
输出格式
输出一行,一个整数,表示答案。
6
4 7 7 5 2 2
6
见附件中的 mod/mod2.in。
见附件中的 mod/mod2.ans。
提示
对于 的数据,。
对于 的数据,。
对于 的数据,,。
【A班】冲S NOIP一等(未包含DP)
- Status
- Done
- Problem
- 36
- Open Since
- 2025-10-2 0:00
- Deadline
- 2025-11-8 23:59
- Extension
- 24 hour(s)