> 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/cosmic-path-optimization.md).

# Cosmic Path Optimization

## Question

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

## Solution

### Idea

This is a huge funny question, don't feel panic because of the physics content in the question. It is nothing but a **simple math** problem about getting the average, nothing to talk about.

### Code

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