Company: Money Forward India_1nov
Difficulty: medium
Develop a security management system! Problem Description An office building is protected by a security gate. Anyone who wants to come in holds a card over the gate; the gate sends the card number, the date and the time to your system, and your system decides whether the gate opens. The input is one test of step 1 (employee cards) or one test of step 2 (guest cards). The first line holds 1 or 2 and says which. All records arrive in chronological order, which means the date and time of the entry records never go backwards. Step 1 - employee cards An employee card holds a 10-digit employee ID, which is either enabled or disabled. Input for step 1: the line 1 ; a line with the integer N , the number of IDs that are enabled at the start; N lines, one enabled employee ID each (the leading digit may be 0 ; all are different); then the records, one per line, each of: enter date time id - someone holds an employee card over the gate; issue id - the administrator enables a new employee ID (not