Задача B. Mini mnist
Условие
Дано чёрно-белое изображение размером 28 × 28 пикселей
(символ ".
" обозначает белый пиксель, "#
" — чёрный).
Необходимо определить, какая из трёх возможных цифр изображена — 6, 7 или 8.
Формат входных данных
Входной файл содержит 28 строк по 28 символов.
Формат выходных данных
Выходные данные должны содержать единственное число — распознанную цифру (6, 7 или 8).
Примеры тестов
№ |
Стандартный вход |
Стандартный выход |
1 |
............................
............................
............................
............................
............................
............................
............................
.......#..........##........
.......#############........
................####........
......#.........###.........
......##........##..........
......#.........##..........
......#........##...........
...............##...........
...............##...........
...............##...........
..............##............
..............##............
..............##............
..............##............
..............##............
..............##............
.............##.............
.............##.............
.............##.............
.............##.............
............................
|
7
|
2 |
............................
............................
............................
............................
............................
............................
................######......
............###########.....
...........########.####....
..........#########.###.....
.........##########.####....
........########...####.....
........######....####......
.........####....####.......
..........####.####.........
..........#######...........
...........######...........
...........######...........
........####..###...........
........###...###...........
.......###.....##...........
......###.....###...........
......##.....####...........
......###########...........
......#########.............
........######..............
............................
............................
|
8
|
3 |
............................
............................
......................##....
.....................##.....
...................###......
..................###.......
.................###........
...............###..........
..............###...........
.............###............
...........####.............
..........###...............
.........###......#####.....
.......###.....########.....
.......##.....###....##.....
......##....###.....##......
.....##....##......###......
.....#....##.....###........
.....#....#....####.........
.....############...........
......########..............
.........####...............
............................
............................
............................
............................
............................
............................
|
6
|