Problem
Input format
On one or more lines: integers separated by spaces or newlines. Their count is between `0` and `10000`. - integers are in the range `[-1000000000, 1000000000]` - the number of values is between `0` and `10000`
Output format
- if at least one value exists: the maximum and the position of its first occurrence, separated by a space; - if the input is empty: the word `vid`.
Example
3 1 4 1 5 9 2 6 5 3
9 6
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
3 1 4 1 5 9 2 6 5 3
9 6
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.