Door opener and door closer string C language, door opener and door closer
Description Every day, the first person to come to the computer room should open the door & # xff0c; the last person to leave should close the door. There are a bunch of messy computer room sign-in and sign-out records,Please find out who opened and closed the door on the day according to the records. Enter The first line of the test input gives the total number of days N of the record ( 0 The record of each day gives the number of recorded entries in the first line M ( 0 Certificate number Sign-in time Sign-out time The time is given in “hour: minute: second” (each takes 2 digits) ,The document number is A character string whose length does not exceed 15. Output For each day’s record, output 1 line , that is, the ID number of the person who opened and closed the door on that day, in the middle 1 space separated. Note :In the referee’s standard test input ,All records are guaranteed to be complete ,Everyone’s check-in time is before the check-out time,and There is no situation where multiple people sign in or sign out at the same time. Sample input 1 1 3 CS2322231…