Skip to content

Walls

Unrated
English

Language

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

Statement

Walls: original English statement, page 1

Walls: original English statement, page 2

Examples

Sample input 1
10
10
3
3 6 9
3
1 2 3
3
1 3 7
4
2 4 7 3
3
4 6 7
3
4 8 6
3
6 8 7
3
4 5 8
4
7 8 10 9
3
5 10 8
7
1 7 9 10 5 4 2
Sample output 1
2
3

Tags

No tags yet

Source