Lang:Java
Edit12345678910111213141516171819202122232425262728293031import java.util.Arrays;import java.util.Scanner;/*https://hihocoder.com/contest/hiho150/problem/1题目1 : Demo Day时间限制:10000ms单点时限:1000ms内存限制:256MB描述You work as an intern at a robotics startup. Today is your company's demo day.During the demo your company's robot will be put in a maze and without any information about the maze,it should be able to find a way out.The maze consists of N * M grids. Each grid is either empty(represented by '.') or blocked by an obstacle(represented by 'b').The robot will be release at the top left corner and the exit is at the bottom right corner.Unfortunately some sensors on the robot go crazy just before the demo starts.As a result, the robot can only repeats two operations alternatively:keep moving to the right until it can't and keep moving to the bottom until it can't.At the beginning, the robot keeps moving to the right.rrrrbb.....r.... ====> The robot route with broken sensors is marked by 'r'....rrb.....bb...While the FTEs(full-time employees) are busy working on the sensors,you try to save the demo day by rearranging the maze in such a way that even with