#K72312. Count Distinct Designations
Count Distinct Designations
Count Distinct Designations
You are given a list of employee designations. Your task is to count the number of distinct designations. The comparison is case sensitive; for instance, 'Manager' and 'manager' are considered different designations.
Formally, you are given an integer \(N\) and a sequence of \(N\) strings. You need to output the number of unique designations in the sequence.
Example: For \(N = 7\) and designations ["Manager", "Engineer", "Executive", "Manager", "Designer", "Engineer", "Intern"], the distinct designations are {"Manager", "Engineer", "Executive", "Designer", "Intern"} so the answer is 5.
inputFormat
The first line contains an integer \(N\) representing the number of employees. The following \(N\) lines each contain a single string representing an employee's designation.
outputFormat
Output a single integer that is the count of distinct designations.
## sample7
Manager
Engineer
Executive
Manager
Designer
Engineer
Intern
5