VIVO笔试第一题
一共三题,一个小时。
第二题 pass 80%,第三题AC。
第一题留待后续限时30分钟完成。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| import sys
class Solution():
def shortestPath(self, maps, start, destination): pass
if __name__ == "__main__":
""" Input: 15 地图大小 0 7 7 7 起点和终点坐标 *5#++B+B+++++$3 地图本图 55#+++++++###$$ ###$++++++#+*#+ ++$@$+++$$$3+#+ +++$$+++$+4###+ A++++###$@+$++A +++++#++$#$$+++ A++++#+5+#+++++ +++$$#$++#++++A +++$+@$###+++++ +###4+$+++$$+++ +#+3$$$+++$##++ +#*+#++++++#$$+ $####+++++++$## 3$+++B++B++++#5
Output: 13 最短路径
Explain: #/@ is Obstacle +/-/* is Mathematical operators number is score """
solution = Solution()
|