Csu 1458: Booking (number of rooms opened)

Source: Internet
Author: User

1458: BookingTime Limit: 3 Sec Memory Limit: 128 MB
Submit: 116 Solved: 27
[Submit] [Status] [Web Board] Description

Input

Output

Sample Input
42 1201 2013-07-01 15:59 2013-07-08 16:302 2013-07-08 17:30 2013-07-15 12:003 6065 2013-07-08 14:30 2013-07-08 16:0032 2013-07-01 16:00 2013-07-15 12:0091 2013-07-01 16:00 2013-07-08 15:002 360a7 2016-02-21 14:00 2016-02-28 21:00xx 2016-03-01 01:00 2016-03-02 12:572 60a9 2016-02-21 14:00 2016-02-28 11:00a8 2016-02-28 12:00 2016-03-11 21:00
Sample Output
2311
The scheduled time and departure time for opening a new room must be within the departure time + cleaning time of the previous room.
# Include
  
   
# Include
   
    
# Includeusing namespace std; typedef struct nnn {int st; int et;} node; node book [5005]; int cmp (node a, node B) {if (. st = B. st) return. et
    
     

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.