| CodEMI 2025 |
|---|
| Finished |
- Imagine you have $$$n$$$ students lined up, each with an integer value. Your challenge is to split this line into one or more consecutive groups (the number of groups $$$m$$$ is not fixed) such that each group meets a special "hull" condition:
- Your task: Compute the number of ways to form such a segmentation of the students, and output your answer modulo $$$10^9 + 7$$$.
The first line contains an integer $$$n$$$ ($$$1 \le n \le 5*10^3$$$) — the number of students.
Print a single integer: the number of valid segmentations, modulo $$$10^9 + 7$$$.
7
5
5
5
| Name |
|---|


