#K52507. Employees with Completed Projects
Employees with Completed Projects
Employees with Completed Projects
You are given records for n employees. Each record contains an employee's name, an ID, the number of projects, and then several pairs representing the project name and the number of hours spent on that project.
An employee is considered to have completed a project if the hours spent on that project is greater than \(100\). Your task is to list the names of all employees who have completed at least one project, preserving their input order.
The format of a record is as follows:
- Name (a string)
- ID (a string or number, not used in processing)
- Number of projects (an integer)
- Followed by pairs of: project name (string) and hours spent (integer)
For example, if an employee record is:
Alice 123 2 projectA 112 projectB 90
Since \(112 > 100\), Alice is considered to have completed a project, and her name should be output.
inputFormat
The input is read from standard input and is structured as follows:
- The first line contains an integer \(n\), the number of employees.
- Each of the next \(n\) lines contains an employee record as described above.
outputFormat
Output a single line to standard output containing the names of employees who have completed at least one project. The names should be printed in the order they appear in the input, separated by a single space. If no employee has completed any project, output an empty line.
## sample1
Alice 123 2 projectA 112 projectB 90
Alice
</p>