| EPT Solving Cup 5.0 공식 경연대회 |
|---|
| Finished |
In this round of the Squid Game, the players are presented with $$$n$$$ locked vaults, each containing a hidden number. The guards provide an interval $$$[l, r]$$$ for each vault, indicating that the number inside must be chosen from this range.
Each player must select exactly one number from each interval, forming a sequence of $$$n$$$ numbers. The objective is to maximize the MEX of this sequence.
The mex of a sequence is the smallest non-negative integer that does not appear in the sequence. For example:
Print a single integer, the maximum possible mex of the sequence obtained by selecting one integer from each interval.
310 040 10 31 20 030 10 03 3
1 4 2
| Name |
|---|


