Skip to content

Building with Blocks

Unrated
English

Language

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

Statement

Building with Blocks: original English statement, page 1

Building with Blocks: original English statement, page 2

Building with Blocks: original English statement, page 3

Examples

Sample input 1
18
2 1 1
4 1 1
2 3 1
4 3 1
2 1 2
3 1 2
4 1 2
1 2 2
2 2 2
3 2 2
4 2 2
2 3 2
3 3 2
4 3 2
4 2 3
4 2 4
4 2 5
5 2 5
Sample output 1
5
7 10 2 10 12

Tags

No tags yet

Source