本题乍看有点像959.Regions-Cut-By-Slashes,但本质只是简单的模拟。
- 当前是\时,如果右边是/,那么卡死
- 当前是\时,如果右边是边界,那么卡死
- 当前是\时,如果右边是\,那么会掉落在右下方的格子。
- 当前是/时,如果左边是\,那么卡死
- 当前是/时,如果左边是边界,那么卡死
- 当前是/时,如果左边是/,那么会掉落在左下方的格子。
直至球落到第m行,所在的y坐标就是答案。
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — LeetCode/Others/1706.Where-Will-the-Ball-Fall at master · wisdompeak/LeetCode Expand file tree/ Copy path1706.Where-Will-the-Ball-Fall/Directory actionsMore optionsMore optionsDirectory actionsMore optionsMore options/ Copy path1706.Where-Will-the-Ball-Fall/Folders and files
| |||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||