Skip to content

Bus Terminals

UnratedLanguage limit
English

Language

Contribute a translation
Time limit
4000 ms
Memory limit
32 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Bus Terminals

Bus Terminals

Examples

Sample input 1
6
1 7
16 6
12 4
4 4
1 1
11 1
Sample output 1
20
Sample input 2
7
7 9
10 9
5 3
1 1
7 2
15 6
17 7
Sample output 2
25

Tags

No tags yet

Source

This problem accepts only these languages.

C++20