{"id":20557049,"url":"https://github.com/sharpvik/compy","last_synced_at":"2026-04-25T05:34:19.204Z","repository":{"id":114205862,"uuid":"146549372","full_name":"sharpvik/compy","owner":"sharpvik","description":"Interesting computational problems that are fun to solve :)","archived":false,"fork":false,"pushed_at":"2018-10-14T18:40:17.000Z","size":3802,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-16T18:29:50.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sharpvik.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":"2018-08-29T05:25:08.000Z","updated_at":"2018-10-14T18:40:19.000Z","dependencies_parsed_at":"2023-06-15T23:00:18.136Z","dependency_job_id":null,"html_url":"https://github.com/sharpvik/compy","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/sharpvik%2Fcompy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Fcompy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Fcompy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Fcompy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharpvik","download_url":"https://codeload.github.com/sharpvik/compy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242163858,"owners_count":20082224,"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":[],"created_at":"2024-11-16T03:34:27.134Z","updated_at":"2026-04-25T05:34:14.184Z","avatar_url":"https://github.com/sharpvik.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Use Guide\n\nIf you are asking yourself what this repository is about -- it is a directory filled with all sorts of computational problems that are fun to solve; and here is how to use it.\n\n## Task Description\n\nEvery folder has a problem statement -- a MarkDown type file named *task.md*. You can view it here (on GitHub) or you can also consider installing a [MarkDown Viewer](https://github.com/simov/markdown-viewer) and viewing the file locally, using your browser (which is probably more handy for offline use).\n\n## Test Gen\n\nMost folders will have a file called *test_gen.py* contained within the *code* folder, which, you guessed it right, can be used to generate random test cases to test your algorithm. However, it is a Python file, so make sure you have [Python3](https://www.python.org/downloads/) installed on your machine. During Python installation process make sure you tick the box that asks you to **add Python to the PATH** -- this way you will only need to open a Terminal, locate it to the necessary folder and run this command to generate a test input:\n\n```terminal\npython test_gen.py \u003cprobably some parameters\u003e\n```\n\nThe Generator may require you to specify some parameters -- most likely the size of the test input you want to get. Look into the *test_gen.py* file for specific information on that.\n\nAfter you run the Generator, you will notice a file called *testin.txt* appear in the folder. Use it wisely.\n\n## Editorial\n\n### Solution\n\nInside each problem folder, you can find *editorial* folder that contains two files. One of those will be called *solution* -- it it a program file, if you run it using any valid input for the specific problem, it will generate a file called *out.txt*. In the file generated you will find correct output corresponding to the input provided.\n\n### Explanation\n\nOf course, it would be highly disrespectful of me to just leave you with my *solution.cpp* file and force you to decrypt my code in an attempt to understand what it is supposed to do.\n\nTherefore, I put the file called *explanation.md* into every *editorial* folder for every problem there is. In that file you will find my explanation of the method I was using to solve this specific problem.\n\n## Grader\n\nSuppose you ran your program, it has generated the *out.txt* file into the *code* folder. Now you need to check if your solution is correct and if it satisfies the time limit. For these purposes you run the Grader script. It requires [Python3](https://www.python.org/downloads/) too, so make sure you have it installed.\n\nTo run the Grader you need to open your Terminal, locate it to the necessary *code* folder and run this command:\n\n```terminal\npython grader.py\n```\n\nMake sure that your output file is called *out.txt* and **do not modify** *solution.txt* file in any way, otherwise, you might get graded incorrectly.\n\nOpen *verdict.txt* file to see the verdict.\n\n---\n\n**Good luck and have fun!**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpvik%2Fcompy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpvik%2Fcompy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpvik%2Fcompy/lists"}