-->
当前位置:首页 > 题库

PROGRAMMING:Kwai Fu

Luz5年前 (2021-05-10)题库506
Kwai is a relatively short video app software, which updates some interesting videos every day, so its appearance has become a way to kill time. But some of our students will not stop watching interesting videos when they come in and cause them to indulge in it. When you enter and exit Kwai app, its background has a record data, that is, the time to enter Kwai and the time to exit. Kwai Kwai Kwai is now in charge of your class. You need to know who you have the longest time in your day. So you asked for the backstage data of your class, but these data are scattered. Please help your head teacher find out the fast maniac in your class.
Definition: fast Kwai maniac is the longest student in a day.
###Input format:
In the first line, give two integers n and m (1 ≤ n ≤ 100, 1 ≤ m ≤ 1000), n represents the number of students in your class, M represents the number of data, next, give a group of data in each line of M, the format is: student number entry time exit time, student number of your class is numbered from 0 to n-1, and it is a two digit number.
###Output format:
Output the fast track crazy character of your class and the time of the video Kwai. The title ensures that only one of these students is available.
Note: the output student number is two digits, less than two digits complement leading 0.
###Input example:
```in
3 5
001 04:12:40 04:41:33
000 16:42:03 16:49:27
002 05:14:50 05:37:52
000 04:13:30 04:37:49
000 12:00:15 12:08:46
```
###Output example:
```out
Kwai Fu Crazy: 000 00:40:14
```







answer:If there is no answer, please comment