1432.输油管道
Time Limits: 1000 ms Memory Limits: 65536 KB
Description
请你帮忙设计一个从城市M到城市Z的输油管道,现在已经把整个区域划分为R行C列,每个单元格可能是空的也可能是以下7种基本管道之一:
![img](data:image/JPG;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCABkApYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAooooAKKKxfGBI8Ea+QSCNOuMEf9c2oA2qK86+BzM/wr05mYsfNn5Jz/wAtGr0WgAoryn9oN3j+HMJRmU/2hEMg4/heu/8AChJ8H6ISck2E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UUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAf/2Q==)
油从城市M流向Z,‘+’型管道比较特殊,因为石油必须在两个方向(垂直和水平)上传输,如下图所示:
![img](data:image/JPG;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCACQAPEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2bSdJ059GsXfT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AKNSgC7RRRQBS0f/AJAlh/17R/8AoIq7WVp893a6ba28ml3W+KFEbDxYyAAf46sfbrj/AKBV5/31F/8AF0AXaKpfbrj/AKBV5/31F/8AF0fbrj/oFXn/AH1F/wDF0AXaraj/AMgy7/64v/6Caj+3XH/QKvP++ov/AIuobu5uprKeJNKu9zxsoy8XUj/foAt2H/IOtf8Arin8hVis21ubqGzgibSrvckaqfni6gf79S/brj/oFXn/AH1F/wDF0AXaKpfbrj/oFXn/AH1F/wDF0fbrj/oFXn/fUX/xdAF2s/Xv+Rd1P/r0l/8AQDT/ALdcf9Aq8/76i/8Ai6qapLeXekXttFpV35k0Eka5eIDJUgfx0AbFFUvt1x/0C7v/AL6i/wDi6Pt1x/0Crz/vqL/4ugC7VPUNI03VoxHqOn2l4g6LcwrIB+DA0n264/6BV5/31F/8XR9uuP8AoFXn/fUX/wAXQBmf8IJ4P/6FTQ//AAXQ/wDxNUda8EeE4dC1CSPwvoiSJbSMrLp8QIIU4IO2uh+3XH/QKvP++ov/AIuqmqTXd3pF7bRaVd+ZNBJGuXixkqQP46AK/wDwgng//oVND/8ABdD/APE0o8C+EAcjwroYP/YPi/8Aia0vt1x/0C7v/vqL/wCLo+3XH/QKvP8AvqL/AOLoAls7Gz0+AQWVrBbQjpHDGEX8hViqX264/wCgVef99Rf/ABdH264/6BV5/wB9Rf8AxdAF2s7Xv+QLcfRf/QhUn264/wCgVef99Rf/ABdU9UlvLvTZoI9Ku97Yxl4fUH+/QBs0VS+3XH/QKvP++ov/AIuj7dcf9Aq8/wC+ov8A4ugC7RVL7dcf9Aq8/wC+ov8A4uj7dcf9Aq8/76i/+LoAu1S1X/j0j/6+YP8A0alH264/6BV5/wB9Rf8AxdQXUt1dxxxLptyn7+JiztFgBZFYnhyegNAGpRRRQB//2Q==)
现在恐怖分子弄到了输油管道的设计图,并把其中一个单元格中的管道偷走了,请你帮忙找到偷走的管道的位置以及形状。
Input
第一行包含两个整数R和C(1<=R,C<=25)。
接下来R行每行C个字符描述被偷之后的形状,字符分为以下三种:
(1)‘.’表示空;
(2)字符‘|’(ASCII为124)、‘-’、‘+’、‘1’、‘2’、‘3’、‘4’描述管道的形状;
(3)‘M’和‘Z’表示城市,两个都是只出现一次。
输入保证石油的流向是唯一的,只有一个管道跟M和Z相连,除此此外,保证没有多余的管道,也就是说所有的管道在加进被偷的管道后一定都会被用上。
输入保证有解而且是唯一的。
Output
输出被偷走的管道的行号和列号以及管道的类型。
Sample Input
1 | 输入1: |
Sample Output
1 | 输出1: |
Code
1 |
|