12136 - Schedule of a Married Man

All about problems in Volume 121. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

12136 - Schedule of a Married Man

Post by uDebug »

Here's some input / output I found useful during testing / debugging.

Input:

Code: Select all

8
04:00 03:00
5:00 7:59
04:13 04:16
04:17 05:13
04:13 04:16
04:16 05:13
04:13 04:16
04:17 04:12
04:13 04:16
04:17 04:13
04:13 04:16
04:17 04:12
05:59 0:59
8:00 23:58
18:57 6:48
12:34 16:33
AC Output:

Code: Select all

Case 1: Mrs Meeting
Case 2: Hits Meeting
Case 3: Mrs Meeting
Case 4: Hits Meeting
Case 5: Mrs Meeting
Case 6: Hits Meeting
Case 7: Mrs Meeting
Case 8: Hits Meeting
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
lighted
Guru
Posts: 587
Joined: Wed Jun 11, 2014 9:56 pm
Location: Kyrgyzstan, Bishkek

Re: 12136 - Schedule of a Married Man

Post by lighted »

Problem statement says
You can assume that all times are valid 24-hour clock time, starting time strictly precedes ending time and all times are within a single day.

v1n1t, following inputs are invalid. Starting time should strictly preceed ending time.

Code: Select all

04:00 03:00
5:00 7:59
05:59 0:59
8:00 23:58
18:57 6:48
12:34 16:33
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman
Post Reply

Return to “Volume 121 (12100-12199)”