Problem
Input format
The first line contains `n`. The second line contains `n` integers separated by spaces. - `1 <= n <= 1000` - elements are integers in `[-10^9, 10^9]` - a single element forms a strictly increasing run of length `1`
Output format
The first line contains two numbers separated by a space: the length of the longest strictly increasing run, followed by the position of its first element in the sequence (positions numbered from `1`). The second line contains the elements of the run, separated by spaces.
Example
8 3 1 2 5 4 7 8 9
4 5 4 7 8 9
Stuck?
Use the Get Hint button in the action bar to reveal a guided hint.
💬 Discussion
Loading...No comments yet. Be the first to start the discussion!
Sample cases (from the problem)
Sample Case 1
8 3 1 2 5 4 7 8 9
4 5 4 7 8 9
Solve it your way first
Community solutions unlock after you submit a passing solution. Don't peek.
Ready to solve this challenge?
Create a free account to write code, submit solutions, and track your progress.