ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1403. Courier

Umm, I just used the method which you will use when you face this problem as an elementary school maths exercise.
Posted by some_programming_novice 15 Apr 2019 08:10
1. sort these orders for the following for loop;
2. can I serve current order? is there a not used day left for it? wow, that's easy if I can use std::set::upper_bound;
3. output our selected orders with delivery time.

// wow accepted, so lucky I am.

// after checked the discussion, found that this problem can be easily solve with priority queue, looks that priority queue is more convenient.