cf/mirror

Colored Rectangles

CF
1398D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
1 1 1
3
5
4
Output
20
Sample 2of 3
Input
2 1 3
9 5
1
2 8 5
Output
99
Sample 3of 3
Input
10 1 1
11 7 20 15 19 14 2 4 13 14
8
11
Output
372
1398D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)