GithubHelp home page GithubHelp logo

system-administrators's Introduction

system-administrators

An application which determines the safe and unsafe time intervals for the company based on the administrators holidays.

A small financial company hired two system administrators Alice and Bob. When an admin wants to go to holiday in the next N days he or she have to tell the first and the last day of his vacation. We call a time interval safe if both Alice and Bob are available for the company. Similarly, we call a time interval unsafe if both admins are on their holiday. The file holidays.in contains the vacation data of the administrators. The first line of this file is N, the number of days to forecast (N < 1000). The next line contains the number of days K that Alice will spend on holiday (K≤N). The following K lines are the first and last days of Alice’s holidays separated by a semicolon. The next line contains the number of days L that Bob will spends on holiday (L≤N). The rest of the lines are the first and last days of Bob’s holidays separated by a whitespace. The file holidays.out should start with the number of safe intervals S. The following S lines should consist of a starting and ending day of a safe interval. After that, the number of unsafe intervals U and finally the starting and ending days of unsafe intervals should be placed.

Example:

holidays.in 50 3 5;10 40;45 15;20 1 12;24

holidays.out 4 1;4 11;11 25;39 46;50 1 15;20

system-administrators's People

Contributors

cankatmis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.