{"id":19565634,"url":"https://github.com/iphelf/codeforcesstarterpack","last_synced_at":"2025-07-15T06:40:33.842Z","repository":{"id":159085507,"uuid":"543633181","full_name":"iphelf/CodeforcesStarterPack","owner":"iphelf","description":"This is a CMake project base for solving programming exercises (e.g. Codeforces).","archived":false,"fork":false,"pushed_at":"2023-10-16T16:37:32.000Z","size":173,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-09T00:08:31.747Z","etag":null,"topics":["automation","cmake","codeforces","leetcode"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iphelf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-09-30T14:11:50.000Z","updated_at":"2024-02-21T10:47:38.000Z","dependencies_parsed_at":"2024-11-11T05:28:35.497Z","dependency_job_id":"e23302f9-f363-44f9-b477-91bd807d90d3","html_url":"https://github.com/iphelf/CodeforcesStarterPack","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iphelf%2FCodeforcesStarterPack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iphelf%2FCodeforcesStarterPack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iphelf%2FCodeforcesStarterPack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iphelf%2FCodeforcesStarterPack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iphelf","download_url":"https://codeload.github.com/iphelf/CodeforcesStarterPack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240824395,"owners_count":19863664,"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":["automation","cmake","codeforces","leetcode"],"created_at":"2024-11-11T05:27:54.117Z","updated_at":"2025-02-26T09:25:20.579Z","avatar_url":"https://github.com/iphelf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monorepo for programming exercises\n\n## Usage\n\n![Demo](doc/demo.png)\n\n### Coding\n\nCode under `source` directory.\n\nTest your code against the test case (`in.txt` and `oracle.txt`) with CTest:\n\n```\nctest --output-on-failure\n```\n\nor, use `tool/tester.py` directly:\n\n```\n./tool/tester.py \u003cexecutable\u003e \u003cinput file\u003e \u003coracle file\u003e\n```\n\nor, directly use the executable produced by CMake, e.g. like this:\n\n```shell\n./build/Codeforces \u003c ./source/in.txt\n```\n\n### Managing\n\nManage your code with this directory structure:\n\n- `source`: current working code\n- `template`: template code\n- `archive`: history code\n\nAnd use `tool/archiver.py` to automate operations:\n\n```shell\n# To backup `source` to `archive`:\n./tool/archiver.py backup\n\n# To restore from some directory under `archive`:\n./tool/archiver.py restore\n\n# To reset `source` with `template`\n./tool/archiver.py reset\n\n# To backup `source` to `archive` and then reset `source` with `template`\n./tool/archiver.py archive\n```\n\nNote: use `archiver.ini` or command line arguments to specify paths.\n\n## Example\n\nHere is the process of a typical use case:\n\n1. Set `archive=archive/Codeforces/E136` in `archive.ini`\n2. For each problem `P` in {A, B, C, D}:\n    1. Copy sample input and output to `source/in.txt` and `source/oracle.txt`\n    2. Solve the problem in `source/main.cpp`\n    3. Archive `source` to a subdirectory under `archive/Codeforces/E136/` by `./tool/archiver.py archive`\n       (the tool will interactively ask for the problem ID, and use it to name the subdirectory)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiphelf%2Fcodeforcesstarterpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiphelf%2Fcodeforcesstarterpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiphelf%2Fcodeforcesstarterpack/lists"}