Problem #83
Author:Bușoi Alexandru David
Difficulty
Your best score
N/A
Arbin inherited a multitude of lands from his grandfather and wants to organize efficiently to obtain the richest harvest this year. He has the plans for each land, each being divided into 16 plots. Due to carelessness, the original plans ended up in the hands of his younger brother, who transformed them into digital images. In these images, the digit 0 represents a good plot, and the digit 1 represents a bad plot. The difficulty lies in the fact that the digits are written with various fonts and colors, which makes their processing difficult. Since Arbin has no knowledge in the AI field, he asks you to help him reconstruct the original plans.
An example representation of a land is shown in the following image:

The train.csv file contains the following:
id : Path to imagetype : Type of land plot -> 0 (good) or 1 (bad)test.csv:
id : Path to imageDetermine if the first plot of a land (top-left corner) is good (0) or bad (1). The determination will be made on the images from test_images.

Calculate the score of each land. This is defined as a number obtained by concatenating the rows of the land (from top to bottom) and converting the resulting digit string from base 2 to base 10, in the form of a signed integer (signed int). The calculation will be made on the images from test_images.

For this problem you need to generate a submission.csv file that has the following format:
subtaskID, ID, answer1, test_images/cfcf2084.png, 02, test_images/cfcf2084.png, 27608......where:
subtaskID - can take values 1 or 2 (depending on the task for which we write the results);ID - will represent