Skip to content

Mosaic

UnratedFunction
English

Language

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

Statement

Mosaic: original English statement, page 1

Mosaic: original English statement, page 2

Mosaic: original English statement, page 3

Examples

Sample input 1
4
1 0 1 0
1 1 0 1
2
0 3 0 3
2 3 0 2
Sample output 1
7
3

Tags

No tags yet

Source

This problem accepts only these languages.

C++20