{"id":18297018,"url":"https://github.com/powergee/testcasebruteforce","last_synced_at":"2025-04-09T08:46:25.245Z","repository":{"id":119119715,"uuid":"394041318","full_name":"powergee/TestcaseBruteforce","owner":"powergee","description":"Do bruteforce to find a test case that make my algorithm fail.","archived":false,"fork":false,"pushed_at":"2023-05-20T04:52:23.000Z","size":880,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T03:15:14.354Z","etag":null,"topics":["algorithm","brute-force","bruteforce","competitive-programming","problem-solving"],"latest_commit_sha":null,"homepage":"","language":"C#","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/powergee.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":"2021-08-08T18:34:15.000Z","updated_at":"2022-03-28T12:49:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"df425594-5c4f-4d79-bd24-d30420cc9038","html_url":"https://github.com/powergee/TestcaseBruteforce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powergee%2FTestcaseBruteforce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powergee%2FTestcaseBruteforce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powergee%2FTestcaseBruteforce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powergee%2FTestcaseBruteforce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powergee","download_url":"https://codeload.github.com/powergee/TestcaseBruteforce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008613,"owners_count":21032554,"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":["algorithm","brute-force","bruteforce","competitive-programming","problem-solving"],"created_at":"2024-11-05T14:46:26.426Z","updated_at":"2025-04-09T08:46:25.219Z","avatar_url":"https://github.com/powergee.png","language":"C#","readme":"# TCBRUTE (TestcaseBruteforces)\nDo bruteforce to find a test case that make my algorithm fail.\n\nThe GIF below is an example to find a WA testcase with three files: [testcase generator](./samples/0.%20General/gen.py), [WA algorithm](./samples/0.%20General/wa.cpp), [AC algorithm](./samples/0.%20General/ac.cpp).\n\n```sh\n# example\ntcbrute -g gen.py -a ac.out wa.out -o test.txt\n```\n\n![](./images/general.gif)\n\n## Options\n\n```\ntcbrute\n  Do bruteforce to find a test case that make my algorithm fail.\n\nUsage:\n  tcbrute [options]\n\nOptions:\n  -g, --generator \u003cgenerator\u003e (REQUIRED)    The testcase generator file path\n  -a, --algorithms \u003calgorithms\u003e (REQUIRED)  The executables to find testcases that make them fail\n  -o, --out-path \u003cout-path\u003e                 Path to save a testcase (if it is not specified, Program prints it on the terminal and exits.)\n  -t, --time-limit \u003ctime-limit\u003e             The time limit (ms) [default: 2000]\n  -m, --memory-limit \u003cmemory-limit\u003e         The memory limit (MB) [default: 512]\n  --version                                 Show version information\n  -?, -h, --help                            Show help and usage information\n```\n\n**Note that you can specify a generator or algorithms by commands.** For example, you can use syntax like below.\n\n```\ntcbrute -g \"node generator.js\" -a \"go algo1.go\" \"python algo2.py\" \"pypy3 algo3.py\"\n```\n\n## Install\n\nTo install `tcbrute` on your local, install [dotnet 5.0](https://dotnet.microsoft.com/download/dotnet/5.0), and follow instructions below.\n\n* Ubuntu (or similar Unix-like OS)\n\nExecute `install.sh`. It will copy executables to `/usr/local/tcbrute` and make a symbolic link at `/usr/bin/tcbrute`.\n\n```\n./install.sh\n```\n\nAfter installation, you can use this program with `tcbrute`.\n\n```\n\u003e tcbrute -h\n  _____    ____   ____    ____    _   _   _____   _____                                                                                                                                                                         \n |_   _|  / ___| | __ )  |  _ \\  | | | | |_   _| | ____|                                                                                                                                                                        \n   | |   | |     |  _ \\  | |_) | | | | |   | |   |  _|                                                                                                                                                                          \n   | |   | |___  | |_) | |  _ \u003c  | |_| |   | |   | |___                                                                                                                                                                         \n   |_|    \\____| |____/  |_| \\_\\  \\___/    |_|   |_____|                                                                                                                                                                        \n                                                                                                                                                                                                                                \ntcbrute\n  Do bruteforce to find a test case that make my algorithm fail.\n\nUsage:\n  tcbrute [options]\n\nOptions:\n  -g, --generator \u003cgenerator\u003e (REQUIRED)    The testcase generator file path\n  -a, --algorithms \u003calgorithms\u003e (REQUIRED)  The executables to find testcases that make them fail\n  -o, --out-path \u003cout-path\u003e                 Path to save a testcase (if it is not specified, Program prints it on the terminal and exits.)\n  -t, --time-limit \u003ctime-limit\u003e             The time limit (ms) [default: 2000]\n  -m, --memory-limit \u003cmemory-limit\u003e         The memory limit (MB) [default: 512]\n  --version                                 Show version information\n  -?, -h, --help                            Show help and usage information\n```\n\nTo uninstall the program, Execute `uninstall.sh`. It will remove `/usr/local/tcbrute` and `/usr/bin/tcbrute` if they exist.\n\n## Examples\n\nTo reproduce results below, build C++ files in `samples`.\n\n### 1. Wrong Answer\n\n![](images/wa.gif)\n\n### 2. Time Limit Exceeded\n\n![](images/tle.gif)\n\n### 3. Runtime Error\n\n![](images/rte.gif)\n\n### 4. Memory Limit Exceeded\n\n![](images/mle.gif)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowergee%2Ftestcasebruteforce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowergee%2Ftestcasebruteforce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowergee%2Ftestcasebruteforce/lists"}