ToBeDefined / XingZhenLogicTest

使用 Swift/Python 程序做《2018年刑侦科推理试题》……

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用程序做《2018年刑侦科推理试题》……

试题

XingZhenLogicTest

编码过程

刚开始想用四叉树(Tag 1.0)做遍历,然后进行判断,写了之后发现创建没必要,因为创建了上百万个节点,而且节点信息基本相同,纯属浪费内存…………

于是改成循环遍历。。。节省内存开销同时也提高了速度。。。

后面改写成了Python版本

如何运行

Swift

swift XingZhenLogicTest.swift

Python2.7

python XingZhenLogicTest.py

Python3

python3 XingZhenLogicTest.py

运行结果

RunResults

About

使用 Swift/Python 程序做《2018年刑侦科推理试题》……


Languages

Language:Python 53.2%Language:Swift 46.8%