uva10191測資A

Input:
4
10:00 12:00 Lectures
12:00 13:00 Lunch, like always.
13:00 15:00 Boring lectures...
15:30 17:45 Reading
4
10:00 12:00 Lectures
12:00 13:00 Lunch, just lunch.
13:00 15:00 Lectures, lectures... oh, no!
16:45 17:45 Reading (to be or not to be?)
4
10:00 12:00 Lectures, as everyday.
12:00 13:00 Lunch, again!!!
13:00 15:00 Lectures, more lectures!
15:30 17:15 Reading (I love reading, but should I schedule it?)
1
12:00 13:00 I love lunch! Have you ever noticed it? :)
4
13:00 15:00 Boring lectures...
15:30 17:45 Reading
10:00 12:00 Lectures
12:00 13:00 Lunch, like always.
4
16:45 17:45 Reading (to be or not to be?)
12:00 13:00 Lunch, just lunch.
13:00 15:00 Lectures, lectures... oh, no!
10:00 12:00 Lectures
6
10:45 11:15 Lectures, as everyday.
17:00 17:30 Reading (I love reading, but should I schedule it?)
12:00 12:30 Lectures
15:45 16:15 Lunch, just lunch.
13:15 13:45 Lunch, like always.
14:30 15:00 Lectures, as everyday.
4
16:51 17:28 Lunch, just lunch.
11:15 11:52 Have Fun......
13:07 13:44 Work
14:59 15:36 Do not nap!
8
10:09 10:24 Lectures, as everyday.
10:58 11:12 Reading (to be or not to be?)
12:12 13:07 Shh...   Gaming!
13:31 13:48 Work
14:02 14:31 Lectures, as everyday.
15:11 15:26 Do not nap!
16:09 16:26 Do not nap!
16:54 17:43 Lunch, like always.
7
15:16 15:31 Lectures
16:27 17:15 Lectures, more lectures!
11:11 11:39 Lectures
10:20 11:01 Lectures
14:33 15:15 Lectures
12:22 13:20 Reading
13:32 14:16 Boring lectures...
9
10:54 11:00 Lectures
11:56 12:04 Shh...   Gaming!
12:39 12:47 Reading (I love reading, but should I schedule it?)
13:32 13:40 Have Fun......
14:18 14:21 I love lunch! Have you ever noticed it? :)
14:55 15:02 Boring lectures...
16:09 16:15 Lectures, more lectures!
16:17 16:22 Lectures
16:39 16:46 Reading (to be or not to be?)
14
10:35 10:44 Lectures
11:46 11:48 Lunch, again!!!
12:10 12:16 Lectures, as everyday.
12:26 12:30 Reading
12:37 12:46 Shh...   Gaming!
13:48 13:51 Reading
14:02 14:03 Boring lectures...
15:14 15:18 Shh...   Gaming!
15:21 15:22 Do not nap!
15:35 15:37 Shh...   Gaming!
16:48 16:50 I love lunch! Have you ever noticed it? :)
17:18 17:27 Lectures, lectures... oh, no!
17:37 17:39 Lectures
17:41 17:48 Shh...   Gaming!
13
10:38 10:39 Reading
11:34 11:43 Lectures
12:02 12:05 I love lunch! Have you ever noticed it? :)
12:08 12:13 Reading (I love reading, but should I schedule it?)
12:38 12:45 Lectures, as everyday.
12:55 12:57 Lectures
14:08 14:15 Reading
14:55 14:59 Shh...   Gaming!
16:13 16:19 Lectures
16:37 16:43 Do not nap!
16:47 16:53 Work
17:13 17:18 Lectures, more lectures!
17:25 17:29 Lectures, as everyday.
12
11:48 11:51 Lunch, just lunch.
12:55 13:00 Shh...   Gaming!
13:38 13:39 Lectures, lectures... oh, no!
14:40 14:50 Do not nap!
15:04 15:06 Reading (to be or not to be?)
15:36 15:44 Reading
10:29 10:35 Work
11:07 11:09 Shh...   Gaming!
15:46 15:52 Boring lectures...
16:59 17:06 Reading (to be or not to be?)
17:24 17:34 Work
17:44 17:50 I love lunch! Have you ever noticed it? :)
12
17:30 17:40 Have Fun......
17:43 17:53 Have Fun......
10:51 11:00 Lectures, as everyday.
12:03 12:08 Reading (to be or not to be?)
16:19 16:29 Lectures, lectures... oh, no!
16:43 16:50 Lunch, again!!!
13:30 13:31 Shh...   Gaming!
14:11 14:19 Boring lectures...
15:16 15:17 Have Fun......
12:13 12:17 Reading (I love reading, but should I schedule it?)
13:24 13:27 Reading (to be or not to be?)
16:01 16:02 Reading (to be or not to be?)
100
11:09 11:11 Boring lectures...
11:12 11:13 Shh...   Gaming!
11:15 11:16 Reading (to be or not to be?)
11:17 11:18 I love lunch! Have you ever noticed it? :)
11:22 11:25 Boring lectures...
10:01 10:03 Reading (to be or not to be?)
10:07 10:08 Boring lectures...
10:12 10:14 Lunch, again!!!
12:41 12:43 Reading (to be or not to be?)
12:46 12:48 Lunch, just lunch.
12:51 12:53 Lectures, as everyday.
12:56 12:58 Do not nap!
13:01 13:04 Lectures
13:07 13:08 Lunch, just lunch.
13:10 13:12 Lunch, again!!!
13:14 13:17 Work
13:21 13:22 Lectures
13:26 13:27 Have Fun......
13:30 13:32 Work
13:35 13:37 Lunch, just lunch.
13:38 13:41 I love lunch! Have you ever noticed it? :)
13:44 13:45 I love lunch! Have you ever noticed it? :)
13:49 13:50 Lectures, lectures... oh, no!
13:53 13:55 Lunch, again!!!
13:59 14:01 Reading (I love reading, but should I schedule it?)
14:03 14:05 Lectures
14:06 14:08 Shh...   Gaming!
10:15 10:16 Lectures
10:20 10:22 Lectures, more lectures!
10:45 10:46 Boring lectures...
10:50 10:52 Reading (I love reading, but should I schedule it?)
10:55 10:56 Have Fun......
10:58 10:59 Shh...   Gaming!
11:00 11:03 Lectures
11:04 11:05 Lectures, as everyday.
12:32 12:35 Do not nap!
12:38 12:39 Lectures
14:11 14:14 I love lunch! Have you ever noticed it? :)
14:40 14:42 I love lunch! Have you ever noticed it? :)
14:46 14:48 I love lunch! Have you ever noticed it? :)
14:51 14:53 Lectures, more lectures!
14:54 14:56 Reading
14:58 15:00 Lectures, more lectures!
15:01 15:03 Lunch, like always.
15:06 15:08 Boring lectures...
15:11 15:12 Have Fun......
15:15 15:16 I love lunch! Have you ever noticed it? :)
15:20 15:21 Reading (to be or not to be?)
15:23 15:26 Reading (I love reading, but should I schedule it?)
15:28 15:30 Reading (to be or not to be?)
15:34 15:35 Lunch, just lunch.
11:28 11:30 Lectures, lectures... oh, no!
11:34 11:37 Lectures, as everyday.
11:41 11:42 Works...
16:46 16:48 Boring lectures...
16:52 16:54 Reading
12:03 12:04 Lectures, lectures... oh, no!
12:06 12:08 Lectures, as everyday.
12:11 12:14 Lectures, as everyday.
12:17 12:20 Do not nap!
15:38 15:41 I love lunch! Have you ever noticed it? :)
15:45 15:46 Boring lectures...
15:49 15:52 Do not nap!
15:54 15:56 Lectures, more lectures!
15:58 16:01 I love lunch! Have you ever noticed it? :)
16:05 16:08 Lunch, like always.
16:10 16:11 Lectures, more lectures!
16:13 16:16 Lunch, just lunch.
14:15 14:18 Reading (to be or not to be?)
14:20 14:23 Do not nap!
14:24 14:26 Reading (to be or not to be?)
14:29 14:31 Boring lectures...
14:35 14:37 Reading (I love reading, but should I schedule it?)
10:23 10:25 Work
10:28 10:30 Reading
10:34 10:37 Reading (to be or not to be?)
10:40 10:43 Reading (to be or not to be?)
12:24 12:25 Lectures, lectures... oh, no!
12:27 12:28 Shh...   Gaming!
16:19 16:22 Lectures, more lectures!
16:26 16:27 Reading
16:31 16:34 Have Fun......
16:36 16:38 Do not nap!
16:39 16:42 Do not nap!
16:43 16:45 Boring lecture
16:56 16:58 I love lunch! Have you ever noticed it? :)
17:01 17:03 Reading (I love reading, but should I schedule it?)
17:05 17:06 Lectures, as everyday.
17:10 17:12 Work
17:13 17:15 Reading (I love reading, but should I schedule it?)
17:18 17:19 Lunch, like always.
17:22 17:25 Reading
17:27 17:30 Lectures, lectures... oh, no!
17:34 17:36 Reading (to be or not to be?)
17:37 17:38 Work
11:46 11:47 Lectures, lectures... oh, no!
11:51 11:52 Lunch, like always.
11:53 11:54 Reading (to be or not to be?)
11:55 11:57 Lunch, just lunch.
11:59 12:00 Reading
100
15:08 15:10 Reading
15:12 15:14 Reading (I love reading, but should I schedule it?)
15:16 15:19 Lunch, just lunch.
15:20 15:21 Lectures, more lectures!
15:24 15:27 Lectures, lectures... oh, no!
15:29 15:30 Lectures
15:33 15:35 Lunch, just lunch.
10:32 10:35 Boring lectures...
10:38 10:39 Lunch, just lunch.
10:42 10:44 Work
10:46 10:48 Lectures, lectures... oh, no!
10:49 10:51 Lunch, just lunch.
10:03 10:05 Lunch, like always.
10:09 10:12 Lectures
10:15 10:18 Reading
10:22 10:23 I love lunch! Have you ever noticed it? :)
10:26 10:28 Shh...   Gaming!
16:45 16:47 Lectures, as everyday.
16:49 16:50 Do not nap!
16:51 16:52 Do not nap!
16:54 16:55 Lunch, like always.
16:59 17:00 Boring lectures...
17:04 17:05 Work
17:06 17:07 Reading (to be or not to be?)
17:11 17:12 Lectures
17:13 17:16 Reading (to be or not to be?)
17:20 17:23 Reading (I love reading, but should I schedule it?)
17:26 17:27 Boring lectures...
17:28 17:29 Boring lectures...
14:56 14:58 Lectures, as everyday.
15:02 15:04 Do not nap!
15:05 15:06 Reading (I love reading, but should I schedule it?)
10:55 10:58 Work
11:01 11:02 Work
11:06 11:09 Shh...   Gaming!
11:13 11:15 Do not nap!
11:17 11:20 Lunch, just lunch.
11:21 11:23 Work
12:28 12:30 Do not nap!
12:31 12:33 Lunch, like always.
12:37 12:38 Boring lectures...
12:41 12:42 I love lunch! Have you ever noticed it? :)
12:46 12:49 Work
12:51 12:54 Lectures
12:55 12:57 Lunch, again!!!
13:01 13:04 Lectures, lectures... oh, no!
13:06 13:08 Do not nap!
13:09 13:12 Reading
13:13 13:16 Lectures
13:18 13:19 Lectures, as everyday.
13:22 13:23 I love lunch! Have you ever noticed it? :)
13:24 13:26 Lectures, lectures... oh, no!
13:30 13:32 Shh...   Gaming!
13:34 13:36 Lunch, like always.
13:40 13:43 Lectures, as everyday.
13:45 13:47 Lectures
13:50 13:51 Shh...   Gaming!
13:52 13:55 I love lunch! Have you ever noticed it? :)
13:59 14:00 Reading (I love reading, but should I schedule it?)
14:03 14:04 Lunch, just lunch.
14:07 14:08 Boring lectures...
14:10 14:12 Work
14:15 14:17 I love lunch! Have you ever noticed it? :)
14:19 14:20 Work
14:22 14:24 Lectures, lectures... oh, no!
14:28 14:31 Have Fun......
14:33 14:36 Lectures
14:37 14:39 Shh...   Gaming!
14:42 14:44 Reading (to be or not to be?)
14:47 14:49 Lunch, just lunch.
14:52 14:54 Boring lectures...
16:22 16:25 I love lunch! Have you ever noticed it? :)
16:29 16:32 Reading
16:33 16:34 Lectures, more lectures!
16:36 16:39 Lectures, lectures... oh, no!
16:41 16:44 Lectures
15:36 15:37 I love lunch! Have you ever noticed it? :)
15:38 15:39 Boring lectures...
15:43 15:46 Lunch, just lunch.
15:50 15:53 Lectures, lectures... oh, no!
15:57 15:58 Work
16:00 16:01 Lectures, as everyday.
16:02 16:04 Lectures, lectures... oh, no!
16:08 16:10 Lectures, as everyday.
16:11 16:14 Reading (I love reading, but should I schedule it?)
16:17 16:19 Shh...   Gaming!
11:27 11:30 Lectures
11:33 11:34 Lectures
11:35 11:36 Lectures, lectures... oh, no!
11:38 11:39 Lectures
11:40 11:41 Lectures, more lectures!
11:44 11:45 Lunch, again!!!
11:49 11:51 Have Fun......
11:55 11:58 Do not nap!
12:01 12:04 Lectures
12:05 12:06 Lectures, more lectures!
12:09 12:10 Reading
12:14 12:16 Have Fun......
12:19 12:21 Lectures
12:25 12:26 Work
Output:
Day #1: the longest nap starts at 15:00 and will last for 30 minutes.
Day #2: the longest nap starts at 15:00 and will last for 1 hours and 45 minutes.
Day #3: the longest nap starts at 17:15 and will last for 45 minutes.
Day #4: the longest nap starts at 13:00 and will last for 5 hours and 0 minutes.
Day #5: the longest nap starts at 15:00 and will last for 30 minutes.
Day #6: the longest nap starts at 15:00 and will last for 1 hours and 45 minutes.
Day #7: the longest nap starts at 10:00 and will last for 45 minutes.
Day #8: the longest nap starts at 10:00 and will last for 1 hours and 15 minutes.
Day #9: the longest nap starts at 11:12 and will last for 1 hours and 0 minutes.
Day #10: the longest nap starts at 15:31 and will last for 56 minutes.
Day #11: the longest nap starts at 16:46 and will last for 1 hours and 14 minutes.
Day #12: the longest nap starts at 14:03 and will last for 1 hours and 11 minutes.
Day #13: the longest nap starts at 14:59 and will last for 1 hours and 14 minutes.
Day #14: the longest nap starts at 15:52 and will last for 1 hours and 7 minutes.
Day #15: the longest nap starts at 12:17 and will last for 1 hours and 7 minutes.
Day #16: the longest nap starts at 17:38 and will last for 22 minutes.
Day #17: the longest nap starts at 17:29 and will last for 31 minutes.