Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
niu bi
niu bi
niubi, clear boy
It can be simpler and easier to understand, but I am lazy, so I haven't made any further changes
Divide the entire table into four areas:
area1......area2
. .
. .
. .
area3.......area4
then
area1 = wl * hl * resolution * resolution;
area2 = wll * hl * resolution;
area3 = hll * wl * resolution;
area4 = wll * hll;
then Calculate the number of white blocks, others are black blocks
Note: white block, The sum of rows and columns is even