GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — LeetCode/Others/1706.Where-Will-the-Ball-Fall at master · wisdompeak/LeetCode

Expand file tree

/

1706.Where-Will-the-Ball-Fall

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

1706.Where-Will-the-Ball-Fall

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
1706.Where-Will-the-Ball-Fall.cpp
1706.Where-Will-the-Ball-Fall.cpp
 
 
Readme.md
Readme.md
 
 

Readme.md

1706.Where-Will-the-Ball-Fall

本题乍看有点像959.Regions-Cut-By-Slashes,但本质只是简单的模拟。

  1. 当前是\时,如果右边是/,那么卡死
  2. 当前是\时,如果右边是边界,那么卡死
  3. 当前是\时,如果右边是\,那么会掉落在右下方的格子。
  4. 当前是/时,如果左边是\,那么卡死
  5. 当前是/时,如果左边是边界,那么卡死
  6. 当前是/时,如果左边是/,那么会掉落在左下方的格子。

直至球落到第m行,所在的y坐标就是答案。

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.