> For the complete documentation index, see [llms.txt](https://wenbo-notes.gitbook.io/coding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wenbo-notes.gitbook.io/coding/kattis/easy/bus.md).

# Bus

## Question

{% embed url="<https://open.kattis.com/problems/bus>" %}

## Solution

### Idea

This is another **math** problem. A tricky point is the in this question, there is a chance that "half" of a passenger (horrible :scream:) may get off the bus. But as stated in the question, there is no passenger hurt. So, it is safe for you to start from the **last** stop.

### Code

{% @github-files/github-code-block url="<https://github.com/mendax1234/Coding-Problems/blob/main/kattis/bus/bus.c>" %}
