{"id":21651105,"url":"https://github.com/tobedefined/xingzhenlogictest","last_synced_at":"2025-03-20T03:59:05.251Z","repository":{"id":202148006,"uuid":"123608291","full_name":"ToBeDefined/XingZhenLogicTest","owner":"ToBeDefined","description":"使用 Swift/Python 程序做《2018年刑侦科推理试题》……","archived":false,"fork":false,"pushed_at":"2018-03-02T19:11:29.000Z","size":1537,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T05:42:02.240Z","etag":null,"topics":["python","swift"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ToBeDefined.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-02T17:17:31.000Z","updated_at":"2019-03-30T16:48:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"6710a223-dc41-445f-a874-b2f2522ac40a","html_url":"https://github.com/ToBeDefined/XingZhenLogicTest","commit_stats":null,"previous_names":["tobedefined/xingzhenlogictest"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToBeDefined%2FXingZhenLogicTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToBeDefined%2FXingZhenLogicTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToBeDefined%2FXingZhenLogicTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToBeDefined%2FXingZhenLogicTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ToBeDefined","download_url":"https://codeload.github.com/ToBeDefined/XingZhenLogicTest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244547604,"owners_count":20470103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","swift"],"created_at":"2024-11-25T07:46:44.009Z","updated_at":"2025-03-20T03:59:05.232Z","avatar_url":"https://github.com/ToBeDefined.png","language":"Python","readme":"## 使用程序做《2018年刑侦科推理试题》……\n\n### 试题\n\n![XingZhenLogicTest](XingZhenLogicTest.png)\n\n### 编码过程\n\n刚开始想用四叉树([Tag 1.0](https://github.com/ToBeDefined/XingZhenLogicTest/blob/0.1/XingZhenLogicTest.swift))做遍历，然后进行判断，写了之后发现创建没必要，因为创建了上百万个节点，而且节点信息基本相同，纯属浪费内存…………\n\n于是改成循环遍历。。。节省内存开销同时也提高了速度。。。\n\n后面改写成了Python版本\n\n### 如何运行\n\n#### Swift\n\n```bash\nswift XingZhenLogicTest.swift\n```\n\n#### Python2.7\n\n```bash\npython XingZhenLogicTest.py\n```\n\n#### Python3\n\n```bash\npython3 XingZhenLogicTest.py\n```\n\n### 运行结果\n![RunResults](RunResults.png)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobedefined%2Fxingzhenlogictest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobedefined%2Fxingzhenlogictest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobedefined%2Fxingzhenlogictest/lists"}