Opportunity Cost
Unrated
English
Language
Contribute a translation- Time limit
- 5000 ms
- Memory limit
- 2048 MB (no extra memory)
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
4 20 5 5 5 20 5 5 5 20 10 10 10
Sample output 1
10 4
Sample input 2
4 15 15 5 5 15 15 15 5 15 10 10 10
Sample output 2
10 1
Tags
No tags yet