zoukankan      html  css  js  c++  java
  • 24点游戏 程序(三)

    增加了部分去重复的功能,以及后缀转中缀显示。

    部分结果:

    1 1 1 8,(1+1+1)*8
    1 1 1 11,(1+1)*(1+11)
    1 1 1 12,1*(1+1)*12
    1 1 1 13,(1+1)*(13-1)
    1 1 2 6,2*(1+1)*6
    1 1 2 7,(1+2)*(1+7)
    1 1 2 8,1*(1+2)*8
    1 1 2 9,(1+2)*(9-1)
    1 1 2 10,2*(1+1+10)

    。。。

    大概6s取得单一结果,一共1362个解。

    取得全部结果需要14s。其实还是有很多重复。离http://www.24theory.com/theory/的结果还有一定距离。需要更细化的过滤。

    这部分暂时不做了。有空还是想做一个android的24点小游戏。


  • 相关阅读:
    为了快一点为什么却要慢一点
    大数与小数的求和算法
    Tips for newbie to read source code
    学习Data Science/Deep Learning的一些材料
    Git Sophisticated Commands
    两套JRE
    Java environment variables and their functionality
    Change Git Default Editor in Windows
    Multiton & Singleton
    Java Synchronized Blocks
  • 原文地址:https://www.cnblogs.com/marryZhan/p/2497557.html
Copyright © 2011-2022 走看看