Skip to content

Ideal city

UnratedFunction
English

Language

Contribute a translation
Time limit
1000 ms
Memory limit
256 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Ideal city: original English statement, page 1

Ideal city: original English statement, page 2

Ideal city: original English statement, page 3

Examples

Sample input 1
11
2 5
2 6
3 3
3 6
4 3
4 4
4 5
4 6
5 3
5 4
5 6
Sample output 1
174

Tags

No tags yet

Source

This problem accepts only these languages.

C++20