1026: 答题卡项目

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:148 Solved:13

Description

识别答题卡中的 9 位准考证号

Input

请参照提示写法。

Output

识别出的答题卡准考证号(仅输出数字即可,未识别到的数字用 # 代替)

Sample Input Copy

Sample Output Copy

HINT

# 判断某个填涂区域是否填涂       

def fill_judge(pix, fill_width, fill_height, x, y):           

    # 补充代码      
x_start, y_start = 13, 123
fill_width, fill_height = 32, 13
space_width, space_height = 22, 23
# -------------- 文件读取 -------------- 
pix = []
while True:
    try:
        line = input()
        if line.strip():
            pixel_row = line.strip().split(';')[:-1]
            pixel_values = []
            for pixel in pixel_row:
                r, g, b = map(int, pixel.split(','))
                pixel_values.append((r, g, b))
            pix.append(pixel_values)
    except:

        break

 # 注意:此处的 pix 为形如[[225,254,234], [223,245,128], ...]的列表,与教材中的 pix 类型不同,使用时注意索引方式

# -------------- 文件读取 -------------- 
# 补充代码