#C7781. Find the Second Largest Number
Find the Second Largest Number
Find the Second Largest Number
You are given a list of integers and your task is to find the second largest distinct number in the list. If there is no such number (i.e. when there are fewer than two distinct elements), output (None).
The input is provided via standard input as a single line of space-separated integers.
inputFormat
The input consists of a single line containing space-separated integers representing the list. There is no explicit size provided; the entire line should be parsed into a list of integers.
outputFormat
Output a single line containing the second largest distinct integer from the list. If no second largest integer exists, output (None).## sample
10 5 20 8
10
</p>