Skip to content
/ 24Game Public

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

License

Notifications You must be signed in to change notification settings

NKID00/24Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

English

24 点

寻找 24 点的最佳解法。

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

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

包含了最佳解法的 24.txt24.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).

$ 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