Statistics

Problem Statement for "OpenAllHours"

Problem Statement

In this problem we are using a 24-hour clock. The clock shows time in hours and minutes, from 00:00 (midnight) to 23:59 (one minute before the next midnight). These times are given as Strings. Each time always has the form "HH:MM", using leading zeros if needed.

The ACME company claims they are open all hours. You would like to verify whether their claim is true.

The company has N branches all over the town. The branches are numbered from 0 to N-1. Each branch has its own opening and closing hours. More precisely, each day branch i opens in the moment when a 24-hour clock starts showing the time openingTime[i], and closes in the moment when the clock starts showing the time closingTime[i]. (It is guaranteed that for each branch its opening time is different from its closing time.)

If the ACME company indeed has at least one branch open during every minute of the day, return "correct". Otherwise, return "incorrect". (Quotes for clarity only. Note that the return value is case-sensitive.)

Definition

Class:
OpenAllHours
Method:
verify
Parameters:
int, String[], String[]
Returns:
String
Method signature:
String verify(int N, String[] openingTime, String[] closingTime)
(be sure your method is public)

Constraints

  • N will be between 1 and 50, inclusive.
  • openingTime and closingTime will each have exactly N elements.
  • Each element of openingTime and closingTime will have the form "HH:MM", with 00 <= HH <= 23 and 00 <= MM <= 59.
  • For each valid index i, openingTime[i] and closingTime[i] will differ.

Examples

  1. 2

    {"04:47","16:47"}

    {"16:47","04:47"}

    Returns: "correct"

    This company has two branches. Each of them is open exactly 12 hours: one from 4:47am to 4:47pm and the other from 4:47pm through midnight all the way to 4:47am on the next day. In the same moment in which one of them closes the other one opens, and so exactly one branch is open during each part of the day.

  2. 3

    {"03:00", "18:30", "08:59"}

    {"09:00", "04:15", "19:01"}

    Returns: "correct"

    Three branches with partially overlapping opening hours. Sometimes two of them are open at the same time, but always at least one of them is open.

  3. 3

    {"03:47", "03:48", "03:49"}

    {"03:44", "03:45", "03:46"}

    Returns: "incorrect"

    Each of these three branches only closes for three minutes, but their closing times overlap. During the minute between the exact moments 03:46 and 03:47 all three branches are closed.

  4. 1

    {"05:00"}

    {"04:59"}

    Returns: "incorrect"

    There is only one branch and it is closed for a single minute each day. (Note that inputs in which a branch has the same opening and closing time are not allowed by the constraints, so no branch can be opened for longer than this one.)

  5. 2

    {"02:08", "18:53"}

    {"16:50", "10:23"}

    Returns: "incorrect"

  6. 3

    {"11:43", "17:29", "13:23"}

    {"20:31", "06:41", "10:24"}

    Returns: "incorrect"

  7. 4

    {"14:17", "00:48", "00:01", "16:26"}

    {"19:55", "01:41", "02:17", "22:37"}

    Returns: "incorrect"

  8. 5

    {"00:18", "19:22", "07:51", "17:51", "12:15"}

    {"11:05", "09:58", "15:58", "11:24", "03:21"}

    Returns: "correct"

  9. 6

    {"01:08", "12:46", "23:28", "20:30", "19:02", "06:41"}

    {"05:56", "18:53", "02:29", "23:26", "23:57", "08:44"}

    Returns: "incorrect"

  10. 7

    {"01:12", "11:23", "12:23", "13:05", "18:26", "08:37", "22:08"}

    {"03:21", "13:04", "22:16", "21:46", "08:19", "10:17", "13:01"}

    Returns: "correct"

  11. 8

    {"23:51", "07:27", "03:45", "14:13", "12:03", "09:46", "08:09", "08:55"}

    {"02:43", "11:29", "10:21", "19:23", "17:49", "16:22", "12:54", "11:58"}

    Returns: "incorrect"

  12. 9

    {"19:17", "16:31", "19:12", "08:52", "07:32", "03:53", "07:04", "16:34", "20:36"}

    {"19:59", "21:51", "01:57", "17:44", "17:53", "14:36", "13:33", "20:54", "06:08"}

    Returns: "correct"

  13. 10

    {"15:09", "05:48", "21:24", "02:32", "17:27", "16:15", "12:28", "20:44", "21:59", "23:00"}

    {"15:17", "10:29", "22:07", "04:49", "22:07", "19:59", "12:45", "23:00", "02:24", "03:02"}

    Returns: "incorrect"

  14. 11

    {"00:45", "08:17", "11:48", "23:36", "06:01", "06:46", "03:21", "19:26", "18:00", "03:41", "15:09"}

    {"05:41", "10:06", "15:29", "01:11", "10:02", "07:52", "04:31", "22:23", "21:21", "05:58", "15:10"}

    Returns: "incorrect"

  15. 12

    {"04:10", "02:17", "00:42", "01:25", "06:11", "17:27", "16:45", "16:53", "15:28", "19:21", "23:43", "05:58"}

    {"07:43", "05:27", "02:58", "02:37", "12:30", "00:35", "18:28", "21:24", "20:17", "19:27", "00:21", "13:06"}

    Returns: "incorrect"

  16. 13

    {"18:32", "21:41", "21:13", "02:05", "04:12", "03:01", "01:50", "10:30", "20:54", "05:09", "19:47", "21:07", "02:45"}

    {"19:59", "21:53", "22:14", "03:42", "04:18", "04:19", "04:11", "11:32", "23:11", "07:30", "20:57", "23:34", "05:10"}

    Returns: "incorrect"

  17. 14

    {"11:41", "01:46", "14:06", "12:04", "19:15", "20:24", "02:10", "03:59", "22:17", "00:36", "19:14", "02:15", "16:43", "03:53"}

    {"16:26", "02:45", "17:40", "14:40", "23:26", "21:36", "06:31", "07:56", "02:10", "04:19", "23:42", "04:43", "21:01", "05:59"}

    Returns: "incorrect"

  18. 15

    {"11:18", "15:47", "20:03", "22:54", "15:43", "21:46", "19:07", "23:11", "01:23", "18:30", "13:05", "03:43", "20:08", "18:20", "19:44"}

    {"12:44", "15:59", "20:54", "02:50", "18:05", "21:59", "20:44", "01:38", "03:38", "22:38", "13:41", "08:10", "00:13", "21:26", "22:24"}

    Returns: "incorrect"

  19. 16

    {"23:18", "21:35", "03:30", "10:24", "11:21", "12:17", "03:10", "12:18", "11:56", "01:55", "21:38", "08:40", "09:53", "15:52", "15:11", "10:50"}

    {"01:03", "22:22", "07:53", "13:52", "15:57", "13:13", "06:49", "12:44", "16:55", "05:16", "23:56", "10:28", "11:41", "18:26", "18:57", "11:19"}

    Returns: "incorrect"

  20. 17

    {"19:48", "00:01", "14:25", "17:45", "20:57", "10:02", "10:20", "05:47", "11:29", "14:32", "17:10", "17:31", "10:41", "00:47", "22:58", "20:17", "23:47"}

    {"21:51", "00:09", "16:23", "19:38", "22:03", "10:29", "10:52", "07:36", "13:37", "15:33", "19:36", "18:39", "13:04", "03:23", "00:36", "22:48", "02:20"}

    Returns: "incorrect"

  21. 18

    {"15:45", "19:03", "23:17", "12:52", "06:11", "06:11", "02:39", "14:01", "07:39", "06:00", "13:34", "21:18", "02:29", "13:16", "13:07", "15:32", "12:44", "04:10"}

    {"21:01", "20:35", "05:17", "13:14", "11:25", "11:31", "06:48", "14:32", "11:36", "11:07", "13:37", "22:30", "07:16", "13:17", "17:23", "20:55", "18:59", "08:32"}

    Returns: "incorrect"

  22. 19

    {"03:29", "14:20", "18:47", "21:04", "22:42", "16:14", "20:21", "13:29", "17:15", "14:45", "10:47", "02:32", "16:38", "22:11", "08:37", "03:09", "01:00", "21:19", "20:31"}

    {"04:14", "17:51", "19:41", "22:34", "02:58", "19:59", "21:09", "17:58", "20:03", "16:26", "14:11", "03:40", "19:29", "23:05", "12:46", "06:12", "04:23", "22:01", "22:26"}

    Returns: "incorrect"

  23. 20

    {"21:59", "17:19", "10:27", "20:40", "19:11", "09:47", "16:39", "13:48", "16:10", "20:06", "20:47", "21:20", "12:46", "11:31", "05:21", "03:36", "06:15", "04:50", "05:44", "02:38"}

    {"23:47", "19:31", "14:44", "21:39", "19:43", "11:18", "18:43", "19:01", "16:14", "23:31", "22:48", "02:04", "13:41", "12:04", "10:24", "05:39", "06:56", "09:14", "07:09", "03:26"}

    Returns: "incorrect"

  24. 21

    {"20:06", "11:53", "14:09", "18:44", "23:10", "03:04", "03:28", "06:53", "11:16", "10:53", "17:16", "17:47", "21:46", "14:53", "16:44", "06:38", "01:40", "03:27", "19:53", "03:17", "14:55"}

    {"21:47", "12:25", "15:25", "19:41", "00:39", "04:25", "03:38", "07:28", "11:40", "12:43", "18:47", "19:36", "23:39", "16:39", "16:50", "08:02", "03:30", "05:20", "20:25", "04:43", "15:11"}

    Returns: "incorrect"

  25. 22

    {"06:23", "22:49", "16:00", "17:40", "23:38", "04:04", "06:46", "00:54", "16:50", "04:50", "05:35", "09:52", "01:36", "20:38", "01:30", "21:04", "22:50", "08:44", "06:33", "07:20", "12:39", "06:54"}

    {"10:17", "00:34", "19:10", "19:42", "01:51", "05:03", "09:27", "03:13", "18:14", "07:43", "08:54", "10:11", "04:48", "21:55", "04:15", "00:43", "22:52", "10:13", "08:56", "08:55", "13:14", "08:49"}

    Returns: "incorrect"

  26. 23

    {"01:10", "10:17", "22:51", "14:23", "14:25", "14:16", "16:59", "01:32", "19:17", "23:31", "07:50", "13:50", "00:49", "06:30", "14:14", "17:45", "11:46", "21:19", "11:34", "02:18", "16:09", "02:11", "06:59"}

    {"04:34", "12:52", "00:08", "14:52", "18:01", "15:45", "18:05", "04:38", "22:22", "01:37", "09:00", "14:05", "02:30", "09:47", "15:48", "18:08", "14:51", "00:00", "13:27", "02:35", "17:18", "02:53", "07:58"}

    Returns: "incorrect"

  27. 24

    {"14:24", "06:44", "00:12", "20:38", "00:24", "18:12", "18:10", "16:04", "11:20", "01:18", "11:06", "11:45", "03:43", "10:36", "20:47", "17:53", "01:11", "20:04", "13:05", "06:31", "09:27", "17:24", "01:17", "10:22"}

    {"18:26", "09:16", "01:11", "01:27", "02:33", "20:02", "21:21", "17:54", "14:46", "04:51", "15:42", "11:49", "03:54", "11:01", "22:39", "17:55", "05:55", "20:30", "17:03", "07:17", "12:50", "20:23", "01:51", "13:02"}

    Returns: "incorrect"

  28. 25

    {"20:49", "15:49", "11:21", "08:38", "12:44", "12:52", "06:01", "01:01", "19:37", "04:18", "02:56", "14:26", "14:12", "19:44", "05:15", "18:23", "08:57", "02:33", "20:08", "20:03", "02:24", "04:40", "17:41", "20:53", "19:27"}

    {"21:46", "16:42", "11:33", "09:32", "12:57", "13:41", "06:39", "01:05", "20:02", "04:47", "02:57", "15:21", "15:07", "20:01", "06:04", "19:22", "09:16", "02:39", "20:39", "20:20", "02:27", "04:56", "17:58", "21:31", "20:21"}

    Returns: "incorrect"

  29. 26

    {"16:39", "19:49", "05:42", "18:29", "21:37", "04:58", "04:00", "09:43", "16:31", "16:43", "20:39", "13:59", "15:21", "06:15", "14:36", "16:42", "13:55", "12:47", "10:18", "13:27", "01:12", "17:57", "04:50", "13:23", "22:30", "20:14"}

    {"19:16", "19:56", "08:16", "20:58", "00:43", "05:58", "04:39", "12:21", "19:18", "18:41", "21:59", "17:12", "17:57", "06:19", "16:41", "19:50", "15:23", "15:10", "11:37", "15:04", "03:52", "19:06", "06:50", "13:49", "22:58", "20:23"}

    Returns: "incorrect"

  30. 27

    {"21:47", "22:39", "05:02", "08:53", "05:27", "14:04", "11:02", "09:04", "11:17", "22:25", "07:00", "21:12", "09:37", "15:43", "11:38", "18:01", "03:48", "06:03", "07:45", "19:30", "10:56", "07:01", "01:23", "12:59", "16:43", "06:35", "22:51"}

    {"23:15", "01:06", "05:03", "10:23", "05:38", "16:08", "11:40", "10:10", "13:02", "22:54", "07:46", "22:12", "10:40", "17:59", "12:18", "19:34", "04:26", "08:28", "10:04", "21:46", "13:15", "08:05", "02:57", "13:44", "17:27", "08:19", "23:05"}

    Returns: "incorrect"

  31. 28

    {"11:09", "18:24", "08:50", "04:43", "19:46", "09:20", "13:17", "08:43", "12:12", "12:49", "22:09", "07:40", "08:33", "23:06", "10:57", "01:18", "07:04", "15:13", "03:53", "20:12", "08:53", "09:21", "10:03", "01:17", "20:55", "07:24", "23:18", "16:54"}

    {"13:30", "18:44", "09:15", "06:55", "20:40", "11:53", "13:46", "11:05", "12:43", "14:25", "00:26", "08:55", "11:09", "01:53", "13:23", "03:57", "08:20", "16:37", "04:31", "20:59", "10:21", "09:46", "10:57", "02:27", "23:42", "08:15", "01:25", "17:14"}

    Returns: "incorrect"

  32. 29

    {"22:09", "22:20", "03:37", "10:16", "14:07", "02:56", "21:55", "18:42", "18:57", "10:32", "12:45", "03:06", "15:31", "04:00", "18:17", "19:20", "07:28", "10:53", "22:46", "09:02", "02:35", "15:36", "07:31", "17:26", "09:40", "14:53", "08:29", "19:28", "19:30"}

    {"22:15", "22:59", "05:25", "11:13", "14:56", "03:51", "22:53", "19:05", "20:45", "11:53", "13:16", "04:27", "16:26", "04:23", "19:45", "21:24", "07:44", "12:12", "00:24", "09:18", "03:41", "17:46", "09:43", "19:31", "11:02", "17:06", "09:54", "20:22", "20:16"}

    Returns: "incorrect"

  33. 30

    {"08:10", "01:00", "20:45", "20:40", "20:47", "06:46", "20:12", "21:30", "11:29", "05:55", "11:11", "06:18", "22:33", "16:50", "01:12", "15:50", "15:21", "21:13", "21:49", "16:48", "09:13", "09:38", "07:24", "14:35", "08:43", "13:03", "15:41", "05:29", "06:13", "07:51"}

    {"08:16", "02:29", "21:51", "21:14", "21:25", "07:30", "21:30", "22:42", "12:34", "07:31", "11:59", "06:39", "00:07", "17:00", "02:03", "17:19", "15:59", "21:26", "23:19", "18:09", "09:56", "11:07", "08:54", "14:45", "10:02", "13:45", "16:19", "06:00", "07:00", "08:31"}

    Returns: "incorrect"

  34. 31

    {"07:23", "19:36", "00:50", "00:18", "09:42", "18:52", "18:04", "15:30", "01:48", "02:49", "04:26", "13:44", "06:23", "01:34", "22:57", "18:09", "03:24", "00:54", "15:18", "16:34", "20:06", "05:24", "08:08", "22:55", "06:36", "23:02", "16:49", "09:22", "08:43", "17:55", "07:32"}

    {"08:08", "20:07", "01:13", "00:59", "10:00", "19:19", "18:20", "16:00", "02:41", "03:36", "05:13", "14:13", "06:39", "02:00", "23:26", "18:43", "04:00", "01:29", "15:53", "17:28", "20:17", "06:15", "08:26", "23:16", "07:12", "23:57", "17:22", "09:52", "09:05", "18:03", "08:21"}

    Returns: "incorrect"

  35. 32

    {"07:42", "04:42", "23:31", "15:17", "02:53", "18:41", "22:03", "07:22", "21:23", "08:52", "05:21", "12:19", "05:37", "06:17", "01:54", "17:22", "20:36", "18:57", "20:57", "09:45", "10:56", "02:57", "09:24", "10:11", "20:13", "16:53", "04:54", "04:39", "18:22", "08:12", "10:39", "22:58"}

    {"07:47", "05:14", "01:06", "16:52", "03:35", "20:16", "23:27", "08:04", "21:36", "09:59", "05:57", "12:37", "05:48", "08:02", "03:44", "17:45", "21:59", "20:16", "21:11", "09:51", "11:20", "03:55", "09:37", "10:37", "21:50", "18:13", "06:33", "05:11", "20:11", "09:30", "11:12", "00:33"}

    Returns: "incorrect"

  36. 33

    {"00:53", "06:26", "14:42", "09:10", "06:26", "00:26", "21:42", "13:42", "06:06", "06:06", "01:42", "10:45", "13:44", "09:08", "10:20", "01:29", "16:05", "08:03", "15:34", "06:02", "10:20", "09:52", "20:53", "10:28", "22:30", "20:50", "13:38", "17:16", "04:59", "13:07", "07:39", "19:07", "23:36"}

    {"02:13", "06:33", "15:27", "11:15", "08:21", "02:01", "22:46", "15:52", "06:52", "08:41", "02:38", "13:22", "15:01", "09:32", "11:19", "03:53", "17:24", "09:19", "16:20", "08:24", "12:18", "11:07", "21:07", "10:38", "22:48", "23:24", "16:04", "19:05", "06:36", "15:26", "09:55", "20:53", "01:30"}

    Returns: "incorrect"

  37. 34

    {"06:13", "13:40", "11:26", "12:54", "04:47", "14:48", "08:02", "08:46", "00:51", "13:32", "10:20", "08:39", "23:09", "08:17", "20:50", "11:49", "23:21", "08:54", "20:23", "06:58", "08:53", "07:56", "03:43", "10:25", "13:32", "20:11", "18:01", "05:28", "10:55", "09:29", "03:22", "23:41", "05:09", "23:01"}

    {"07:18", "15:03", "11:58", "14:46", "05:10", "15:52", "08:03", "11:05", "02:18", "15:49", "11:11", "08:57", "23:22", "09:02", "22:21", "12:11", "01:29", "10:06", "21:58", "07:11", "10:58", "10:47", "05:59", "11:13", "14:44", "21:03", "19:13", "06:10", "11:35", "11:33", "04:36", "00:48", "06:50", "23:58"}

    Returns: "incorrect"

  38. 35

    {"06:04", "09:54", "04:58", "10:04", "03:38", "18:56", "07:04", "06:43", "13:04", "08:42", "11:26", "14:20", "03:00", "08:52", "07:54", "23:33", "08:23", "16:58", "23:49", "06:50", "05:43", "19:26", "07:46", "12:31", "08:21", "12:38", "14:29", "15:49", "20:59", "01:12", "15:54", "14:27", "14:25", "17:29", "16:44"}

    {"06:16", "11:01", "05:58", "10:09", "05:06", "19:25", "07:18", "07:47", "13:43", "08:44", "12:13", "14:33", "03:43", "10:01", "09:09", "23:51", "09:50", "18:09", "01:10", "06:55", "05:47", "20:07", "09:14", "13:01", "09:24", "13:04", "14:53", "17:06", "21:28", "02:05", "16:24", "14:30", "15:45", "17:38", "17:09"}

    Returns: "incorrect"

  39. 36

    {"06:24", "08:10", "17:44", "18:47", "16:21", "10:27", "23:38", "12:49", "23:00", "07:25", "16:46", "17:00", "18:33", "04:46", "12:11", "23:46", "11:35", "03:39", "17:24", "08:56", "01:48", "01:48", "23:29", "06:00", "20:56", "07:53", "08:02", "04:35", "01:45", "05:57", "23:40", "17:49", "21:17", "05:15", "10:59", "17:41"}

    {"06:25", "10:17", "17:48", "20:03", "17:42", "12:40", "01:48", "13:46", "23:14", "08:21", "18:39", "18:43", "20:16", "06:34", "12:15", "02:01", "13:55", "05:12", "19:03", "09:36", "02:44", "02:56", "00:36", "07:36", "22:32", "08:28", "08:30", "06:08", "02:23", "07:37", "00:50", "18:06", "23:34", "06:17", "12:56", "18:49"}

    Returns: "incorrect"

  40. 37

    {"11:58", "08:45", "21:32", "09:31", "09:08", "17:54", "15:56", "05:08", "04:36", "07:05", "03:21", "13:07", "07:01", "23:01", "22:56", "05:23", "23:54", "01:58", "06:12", "18:46", "16:26", "16:21", "01:56", "16:58", "23:59", "23:30", "07:59", "19:39", "17:24", "13:15", "15:34", "21:50", "05:51", "06:45", "11:21", "20:12", "06:49"}

    {"12:47", "08:46", "22:08", "10:06", "09:38", "18:34", "16:53", "05:32", "05:19", "07:07", "03:25", "13:39", "07:44", "23:35", "23:33", "06:04", "00:18", "02:34", "07:09", "19:02", "17:16", "16:49", "02:41", "17:43", "00:55", "00:20", "08:32", "20:00", "17:39", "14:03", "15:43", "22:01", "06:48", "07:37", "11:22", "20:46", "07:25"}

    Returns: "incorrect"

  41. 38

    {"05:35", "17:48", "22:20", "18:55", "23:26", "05:41", "14:36", "01:06", "01:41", "20:40", "07:05", "06:25", "01:05", "04:06", "11:19", "16:22", "03:21", "12:14", "00:18", "19:30", "15:13", "04:12", "12:35", "01:50", "23:37", "14:32", "23:30", "12:39", "07:51", "04:53", "16:54", "03:38", "20:40", "03:23", "06:37", "05:07", "08:49", "09:34"}

    {"06:50", "19:40", "00:21", "20:47", "23:32", "08:11", "16:19", "03:29", "01:57", "21:07", "09:09", "08:47", "03:22", "04:11", "12:26", "17:34", "03:51", "14:18", "01:30", "21:28", "16:01", "05:19", "14:35", "03:56", "23:46", "14:53", "00:24", "13:30", "10:21", "05:46", "19:06", "04:53", "22:59", "05:29", "06:47", "07:17", "09:27", "11:10"}

    Returns: "incorrect"

  42. 39

    {"11:21", "12:38", "04:53", "13:52", "23:08", "20:38", "00:38", "14:29", "23:17", "03:26", "03:31", "07:26", "06:10", "03:17", "19:03", "00:35", "05:53", "22:51", "23:57", "09:30", "04:44", "13:14", "14:18", "00:59", "08:19", "14:33", "21:25", "12:05", "12:10", "06:25", "10:25", "06:03", "17:52", "10:30", "11:36", "12:32", "21:45", "17:45", "06:30"}

    {"12:30", "12:55", "05:48", "14:33", "23:32", "21:27", "00:52", "14:51", "23:26", "03:43", "03:41", "07:30", "07:00", "03:26", "20:05", "00:51", "06:36", "23:08", "00:14", "09:59", "04:51", "13:35", "15:29", "01:09", "09:24", "15:39", "21:34", "12:37", "12:45", "06:31", "10:31", "06:11", "18:32", "11:26", "11:43", "13:05", "22:09", "18:06", "06:34"}

    Returns: "incorrect"

  43. 40

    {"15:53", "08:51", "16:23", "22:22", "11:38", "13:53", "02:35", "11:40", "08:51", "23:39", "21:14", "20:19", "12:55", "11:28", "08:47", "22:57", "08:31", "06:03", "13:58", "06:46", "11:02", "08:01", "03:58", "08:10", "15:03", "21:08", "23:55", "20:01", "09:40", "01:22", "12:46", "12:27", "03:00", "03:03", "18:18", "15:56", "11:37", "13:12", "10:04", "15:12"}

    {"16:52", "10:38", "16:25", "22:36", "14:17", "14:17", "05:15", "12:34", "10:19", "00:10", "21:53", "22:15", "15:24", "12:20", "09:58", "00:55", "10:35", "08:31", "15:38", "06:56", "11:14", "08:19", "05:09", "10:14", "15:39", "21:33", "23:58", "21:27", "12:06", "02:30", "14:22", "13:08", "04:06", "05:07", "20:28", "18:47", "14:12", "13:54", "10:35", "17:01"}

    Returns: "incorrect"

  44. 41

    {"08:30", "08:13", "01:34", "01:08", "10:24", "14:19", "08:26", "01:55", "09:17", "19:47", "07:15", "01:18", "09:21", "14:12", "03:56", "18:06", "23:47", "20:50", "06:11", "03:47", "11:03", "00:14", "23:37", "18:15", "06:02", "00:17", "17:35", "10:29", "10:09", "13:59", "19:55", "11:17", "09:36", "23:14", "11:29", "23:51", "23:22", "07:13", "12:06", "00:59", "05:03"}

    {"10:03", "09:51", "01:55", "02:46", "11:47", "15:23", "08:54", "03:24", "10:59", "21:02", "08:21", "02:00", "09:39", "14:28", "04:26", "18:29", "01:20", "22:27", "07:29", "04:38", "11:38", "01:43", "00:42", "18:50", "07:08", "01:38", "18:51", "11:43", "11:35", "15:13", "20:43", "11:49", "10:04", "00:43", "12:21", "00:39", "00:57", "07:31", "13:12", "01:59", "06:13"}

    Returns: "incorrect"

  45. 42

    {"13:30", "02:56", "18:56", "17:12", "05:15", "22:51", "05:44", "02:21", "12:30", "13:04", "16:59", "02:24", "19:01", "06:46", "00:41", "19:11", "12:59", "04:43", "22:52", "12:33", "03:42", "06:48", "08:47", "15:44", "13:31", "16:30", "05:39", "06:36", "20:20", "18:10", "11:58", "05:02", "01:36", "22:02", "01:14", "21:37", "06:07", "00:24", "12:11", "07:11", "00:47", "04:32"}

    {"13:42", "03:06", "19:50", "19:02", "07:18", "23:15", "06:42", "02:49", "13:57", "13:29", "18:29", "03:45", "20:05", "06:54", "01:23", "19:36", "13:01", "05:55", "23:43", "13:03", "04:14", "07:38", "10:03", "17:28", "14:25", "16:35", "05:59", "07:22", "22:00", "20:03", "13:48", "06:31", "03:26", "23:49", "01:31", "22:01", "06:14", "01:54", "14:08", "09:05", "01:52", "04:36"}

    Returns: "incorrect"

  46. 43

    {"08:38", "14:08", "04:53", "15:08", "22:39", "18:06", "14:33", "04:23", "06:11", "04:19", "14:14", "00:51", "19:51", "06:57", "05:43", "17:37", "10:26", "20:50", "06:16", "10:57", "03:27", "12:33", "18:53", "07:36", "07:11", "15:36", "06:23", "22:17", "00:49", "21:33", "13:29", "12:26", "21:36", "14:56", "03:37", "08:43", "22:29", "12:32", "00:20", "07:34", "06:41", "11:31", "13:14"}

    {"09:17", "15:57", "05:51", "15:29", "23:00", "19:58", "14:35", "06:22", "07:14", "06:14", "15:02", "00:53", "20:50", "07:36", "06:19", "19:10", "11:51", "21:44", "08:06", "12:53", "04:42", "14:26", "20:18", "09:09", "08:30", "16:33", "06:52", "22:53", "02:35", "21:46", "13:36", "13:39", "21:44", "15:01", "05:30", "09:27", "22:57", "14:22", "01:05", "08:02", "07:05", "12:02", "15:06"}

    Returns: "incorrect"

  47. 44

    {"22:40", "04:24", "17:20", "14:18", "12:24", "16:35", "16:55", "05:46", "14:14", "17:19", "15:51", "12:38", "05:49", "22:08", "18:14", "16:56", "01:35", "10:23", "08:24", "08:20", "03:08", "22:36", "19:49", "16:59", "10:56", "06:36", "20:01", "07:38", "13:28", "01:23", "19:53", "18:57", "11:10", "21:36", "15:41", "01:11", "20:19", "03:13", "02:09", "19:41", "13:03", "22:49", "03:20", "17:20"}

    {"22:48", "05:04", "18:00", "14:39", "12:53", "17:05", "17:33", "05:49", "14:52", "17:54", "16:12", "13:06", "06:23", "22:44", "18:29", "17:23", "01:58", "11:03", "08:55", "08:34", "03:40", "23:01", "20:03", "17:01", "11:12", "06:58", "20:35", "07:40", "14:14", "01:56", "20:15", "19:32", "11:33", "22:09", "16:21", "01:48", "20:31", "03:27", "02:26", "19:59", "13:41", "22:51", "03:54", "18:04"}

    Returns: "incorrect"

  48. 45

    {"14:14", "12:03", "09:07", "04:59", "18:40", "21:36", "20:53", "20:53", "05:11", "10:33", "01:34", "14:51", "18:37", "21:03", "21:17", "19:27", "22:59", "15:01", "18:49", "21:19", "00:01", "09:40", "08:41", "19:11", "22:25", "13:08", "06:40", "13:30", "21:49", "15:59", "10:00", "03:17", "21:26", "10:15", "12:29", "17:39", "08:23", "02:54", "02:23", "04:23", "23:53", "13:54", "07:22", "21:11", "09:46"}

    {"14:48", "14:01", "10:36", "06:03", "20:06", "21:53", "22:36", "22:02", "07:09", "11:10", "02:52", "15:38", "20:14", "21:53", "22:55", "20:48", "00:41", "16:59", "20:34", "22:52", "00:35", "10:42", "10:20", "20:45", "00:13", "13:29", "08:39", "14:23", "23:40", "16:07", "11:04", "04:24", "23:09", "11:47", "14:16", "18:50", "10:14", "04:08", "02:28", "04:58", "00:34", "14:06", "09:21", "22:24", "10:12"}

    Returns: "incorrect"

  49. 46

    {"03:26", "07:21", "06:16", "16:48", "06:54", "12:20", "15:02", "23:42", "02:09", "07:13", "02:13", "02:16", "07:12", "19:38", "13:29", "16:01", "01:18", "05:47", "19:08", "22:52", "03:09", "17:16", "15:09", "07:41", "07:07", "21:14", "05:49", "10:20", "21:17", "19:46", "10:30", "01:26", "18:26", "06:45", "21:55", "19:01", "18:54", "17:28", "08:21", "14:55", "17:35", "01:47", "22:39", "09:49", "10:14", "16:56"}

    {"04:36", "08:23", "06:25", "16:55", "07:03", "12:25", "15:11", "00:54", "03:11", "07:34", "02:35", "02:41", "07:36", "20:06", "14:40", "16:53", "02:28", "06:12", "19:15", "23:36", "03:44", "18:16", "16:02", "08:44", "07:41", "22:20", "06:39", "11:34", "21:40", "20:07", "10:34", "02:35", "18:51", "06:56", "22:51", "19:30", "18:55", "17:48", "09:21", "15:07", "18:43", "02:09", "23:29", "10:33", "11:06", "17:08"}

    Returns: "incorrect"

  50. 47

    {"09:42", "16:49", "10:55", "11:13", "15:12", "01:22", "00:50", "17:22", "22:36", "14:32", "21:40", "22:02", "23:15", "12:32", "09:31", "09:50", "10:46", "06:25", "06:23", "07:06", "12:40", "05:22", "22:47", "20:03", "03:55", "14:21", "00:49", "13:16", "23:02", "04:11", "08:05", "07:08", "14:32", "23:35", "07:32", "16:09", "02:38", "10:34", "22:39", "23:13", "09:50", "06:05", "23:19", "12:04", "12:39", "02:38", "18:39"}

    {"10:22", "17:05", "12:02", "11:57", "15:38", "01:23", "01:54", "18:22", "23:13", "15:15", "21:57", "22:11", "23:29", "13:00", "10:34", "10:38", "11:13", "06:53", "06:44", "08:08", "13:19", "06:14", "23:28", "20:53", "04:11", "14:22", "01:15", "13:38", "00:04", "04:16", "08:08", "07:18", "15:25", "00:01", "07:50", "17:07", "02:59", "10:45", "23:35", "00:05", "10:57", "06:24", "23:47", "13:11", "13:12", "02:56", "18:50"}

    Returns: "incorrect"

  51. 48

    {"20:33", "12:31", "21:34", "22:02", "15:04", "14:53", "05:28", "18:49", "04:59", "20:17", "20:52", "23:12", "15:47", "13:59", "17:49", "14:08", "07:51", "09:11", "14:32", "03:49", "10:43", "06:26", "13:36", "01:25", "02:14", "20:47", "12:36", "12:03", "14:41", "20:33", "15:27", "00:47", "18:52", "00:32", "01:44", "04:01", "03:33", "03:49", "18:18", "08:19", "18:31", "04:53", "17:16", "00:05", "17:05", "18:35", "19:34", "16:11"}

    {"20:53", "13:01", "21:45", "22:35", "15:43", "15:00", "06:14", "18:52", "05:30", "20:37", "21:53", "23:39", "16:20", "14:42", "18:22", "14:41", "08:24", "09:23", "15:11", "03:57", "11:08", "06:41", "14:21", "01:35", "03:08", "20:59", "13:31", "12:45", "15:00", "20:37", "15:55", "01:44", "18:55", "01:17", "02:23", "04:04", "04:08", "04:46", "19:16", "08:20", "19:32", "05:13", "17:47", "00:11", "17:44", "19:15", "19:51", "16:23"}

    Returns: "incorrect"

  52. 49

    {"07:21", "11:22", "22:54", "03:46", "15:55", "00:57", "17:02", "07:03", "19:47", "11:03", "12:18", "10:01", "22:54", "19:24", "10:06", "11:25", "18:00", "14:48", "15:07", "05:06", "20:56", "07:34", "10:26", "23:42", "11:08", "11:05", "13:33", "17:59", "18:25", "04:45", "01:59", "04:19", "17:49", "03:23", "14:43", "14:17", "12:24", "15:49", "09:29", "01:09", "08:16", "09:56", "00:49", "19:26", "23:42", "21:56", "20:35", "22:48", "20:13"}

    {"08:17", "11:44", "01:02", "03:52", "17:49", "01:08", "19:00", "07:34", "21:30", "12:52", "12:59", "11:48", "00:58", "20:28", "12:03", "13:04", "19:20", "16:13", "15:08", "06:10", "22:28", "08:05", "10:47", "01:46", "11:34", "11:06", "14:25", "19:09", "19:29", "04:54", "03:18", "06:27", "19:06", "05:31", "15:33", "14:46", "14:05", "16:37", "10:43", "02:23", "08:25", "11:24", "02:55", "21:05", "00:53", "23:44", "21:21", "23:17", "20:15"}

    Returns: "incorrect"

  53. 50

    {"22:09", "19:01", "03:04", "22:36", "19:20", "17:22", "18:02", "08:16", "18:37", "21:48", "12:42", "09:50", "05:44", "07:01", "12:11", "21:07", "14:21", "12:58", "05:43", "01:50", "01:30", "18:23", "11:05", "09:24", "13:15", "13:13", "12:38", "04:15", "04:13", "21:03", "14:05", "08:47", "13:02", "01:46", "23:22", "05:45", "05:33", "00:56", "08:49", "23:33", "19:15", "08:01", "10:38", "02:26", "16:36", "18:00", "12:03", "06:36", "15:44", "12:58"}

    {"23:18", "19:49", "04:16", "23:02", "20:17", "18:32", "18:22", "09:02", "19:39", "22:40", "13:37", "10:41", "06:08", "08:05", "13:21", "21:40", "15:07", "13:32", "06:34", "03:07", "02:20", "19:20", "11:10", "10:14", "13:44", "13:42", "12:42", "04:53", "05:22", "21:18", "14:56", "09:35", "13:49", "02:30", "00:17", "06:50", "06:27", "01:29", "09:34", "23:41", "20:18", "08:14", "11:50", "03:21", "17:47", "18:49", "13:09", "07:50", "16:11", "14:00"}

    Returns: "incorrect"

  54. 2

    {"00:01", "00:00" }

    {"00:00", "00:01" }

    Returns: "correct"

  55. 3

    {"03:47", "03:48", "03:49" }

    {"03:44", "03:45", "03:46" }

    Returns: "incorrect"

  56. 1

    {"00:00" }

    {"23:59" }

    Returns: "incorrect"

  57. 2

    {"12:00", "13:00" }

    {"11:59", "12:30" }

    Returns: "correct"

  58. 3

    {"04:00", "05:00", "06:00" }

    {"05:00", "04:30", "06:30" }

    Returns: "correct"

  59. 1

    {"00:00" }

    {"12:01" }

    Returns: "incorrect"

  60. 1

    {"00:01" }

    {"00:00" }

    Returns: "incorrect"


This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2024, TopCoder, Inc. All rights reserved.
This problem was used for: