#C2578. Counting Unique File Paths
Counting Unique File Paths
Counting Unique File Paths
You are given file path data provided by various firms. Each firm first presents an integer \(N\) (the number of file paths) followed by \(N\) file path strings. Your task is to determine the total number of unique file paths across all firms. Note that the file paths are considered case-sensitive; for example, File.txt
and file.txt
are treated as different.
Input Format: The input consists of multiple lines. The first line contains an integer \(F\) representing the number of firms. For each firm, there is a line that starts with an integer \(N\), followed by \(N\) file path strings.
Output Format: Print a single integer representing the number of unique file paths.
inputFormat
The first line of input contains an integer \(F\) denoting the number of firms. This is followed by \(F\) lines, each representing a firm. Each of these lines starts with an integer \(N\) (the number of file paths) followed by \(N\) file path strings separated by spaces.
outputFormat
Output a single integer: the total number of unique file paths across all firms.
## sample3
3 src/main.py src/utils.py README.md
2 src/utils.py src/config.yaml
4 tests/test_main.py README.md src/config.yaml LICENSE.txt
6