cf/mirror

Triangles on a Rectangle

CF
1620B1000· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
5 8
2 1 2
3 2 3 4
3 1 4 6
2 4 5
10 7
2 3 9
2 1 7
3 1 3 4
3 4 5 6
11 5
3 1 6 8
3 3 6 8
3 1 3 4
2 2 4
Output
25
42
35
1620B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)