Files
stergios/README.md
T
metallaxis 8fe6a6aa17
Stergios Upload Compile Checker / Explore-Gitea-Actions (push) Failing after 19s
Minor Changes. Plus found a solution for this mathematically online.
2026-07-09 02:49:29 +03:00

34 lines
1.3 KiB
Markdown

# Stergios - A Math Problem
## Cloning
```sh
git clone https://gitea.metallaxis.net/metallaxis/stergios.git
```
## Compiling
After cloning the repository run the following command:
```sh
make help (For the help menu)
make (Will compile for the OS you are on (works only for windows and linux))
make build linux/windows
make debug linux/windows (Compile with debug flags in the c code)
make --debug linux/windows (Compile with Makefile debug information)
```
## Running
```sh
make && ./bin/stergios (Normal version)
make && echo -e "3\n./exponentials-values/exponential-3.txt\n\n2\n" | time ./bin/stergios (Run the version for the exponential being 3 and low info printing and the amount of time it takes to execute)
make && echo -e "2\n\n2\n7\n" | time ./bin/stergios (Run the version for the expontial being 7 and low info printing and the amount of time it takes to execute)
```
## Nix Flakes
For anyone using nix flakes to enter the developemnt environment with everything required run (while on the main folder):
```sh
nix develop .
```
## Sources
[Stergios Information](https://progintro.github.io/assets/pdf/stergios.pdf)<br>
[Similar Question](https://projecteuler.net/problem=876)<br>
[The Solver Using Mathematics](https://github.com/cirosantilli/project-euler-solutions/blob/master/solvers/876.py)