{"id":19481536,"url":"https://github.com/cnych/dot24","last_synced_at":"2025-11-19T08:04:08.926Z","repository":{"id":69961597,"uuid":"83802145","full_name":"cnych/dot24","owner":"cnych","description":"24 dot game python version","archived":false,"fork":false,"pushed_at":"2017-03-03T13:55:59.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T17:37:14.144Z","etag":null,"topics":["algorithm","python"],"latest_commit_sha":null,"homepage":null,"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/cnych.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-03T13:42:17.000Z","updated_at":"2022-11-24T03:07:46.000Z","dependencies_parsed_at":"2023-02-22T04:30:58.507Z","dependency_job_id":null,"html_url":"https://github.com/cnych/dot24","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cnych/dot24","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnych%2Fdot24","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnych%2Fdot24/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnych%2Fdot24/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnych%2Fdot24/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnych","download_url":"https://codeload.github.com/cnych/dot24/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnych%2Fdot24/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285207643,"owners_count":27132524,"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","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["algorithm","python"],"created_at":"2024-11-10T20:05:20.934Z","updated_at":"2025-11-19T08:04:08.921Z","avatar_url":"https://github.com/cnych.png","language":"Python","readme":"\n## 24点游戏`python`实现\n\n\u003e 给定任意4个正整数，利用加，减，乘，除，括号这几个运算符，编程计算所有由这4个数字计算出24的表达式，并输出计算表达式。\n\n输出结果要求：加法，乘法需要去重，`(( a + b ) * c)  / d = 24` 和 `(( b + a) * c ) / d = 24 `视为同一表达式，只输出任意一个即可。\n\n### 示例1：\n\n输入：\n`3 3 6 6`\n\n输出：\n`((6/3)+6)*3 = 24`\n\n\n### 示例2：\n\n输入：\n`3 2 3 4`\n\n输出：\n`无解`\n\n\n### 示例3：\n\n输入：\n`5 5 6 6`\n\n输出：\n`((5+5)-6)*6 = 24`\n`(5*5)-(6/6) = 24`\n`((5-6)+5)*6 = 24`\n`(5-(6-5))*6 = 24`\n`(6-(6/5))*5 = 24`\n\n## TODO\n1. 去重部分还有BUG\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnych%2Fdot24","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnych%2Fdot24","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnych%2Fdot24/lists"}