An open API service indexing awesome lists of open source software.

https://github.com/nkid00/24game

寻找 24 点的最佳解法。Find the best solutions of 24.
https://github.com/nkid00/24game

24game 24pointgame 24points cpp cpp17 mathematics

Last synced: over 1 year ago
JSON representation

寻找 24 点的最佳解法。Find the best solutions of 24.

Awesome Lists containing this project

README

          

[English](#24Game)

# 24 点

> 寻找 24 点的最佳解法。

寻找最佳解法时首先考察运算过程中是否出现负数(不出现较好),再考察运算过程中是否出现分数(不出现较好),最后考察使用的加减运算数量(越多越好,即乘除越少越好)。

```sh
$ g++ ./24.cpp -Wall -std=c++17 -O3 -o ./24
$ ./24
```

包含了最佳解法的 `24.txt` 和 `24.md` 将会被生成在同一目录下。

## 许可证

MIT

# 24Game

> Find the best solutions of 24.

The best solution comes with no negative number during the calculation process (if possible), no fractions during the calculation process (if possible) and the most plus and minus operators (or the fewest multiply and divide operators).

```sh
$ g++ ./24.cpp -Wall -std=c++17 -O3 -o ./24
$ ./24
```

The `24.txt` and `24.md` which contain the best solutions will be generated in the same directory.

## License

MIT