{"id":30891235,"url":"https://github.com/jthweb/test_contest_pc2","last_synced_at":"2025-09-20T01:44:27.807Z","repository":{"id":310111773,"uuid":"1011804655","full_name":"jthweb/Test_Contest_PC2","owner":"jthweb","description":"This is example data using the Contest Data Package (CDP) method to host an ICPC-style contest using the Programming Contest Management System PC² on Windows OS.","archived":false,"fork":false,"pushed_at":"2025-08-15T19:00:15.000Z","size":3551,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-15T21:40:39.763Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jthweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"ko_fi":"jthweb"}},"created_at":"2025-07-01T11:11:41.000Z","updated_at":"2025-08-15T19:00:20.000Z","dependencies_parsed_at":"2025-08-15T21:40:44.173Z","dependency_job_id":"b1bba398-f639-495f-9924-258e4c250a6c","html_url":"https://github.com/jthweb/Test_Contest_PC2","commit_stats":null,"previous_names":["jthweb/test_contest_pc2"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jthweb/Test_Contest_PC2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthweb%2FTest_Contest_PC2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthweb%2FTest_Contest_PC2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthweb%2FTest_Contest_PC2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthweb%2FTest_Contest_PC2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jthweb","download_url":"https://codeload.github.com/jthweb/Test_Contest_PC2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthweb%2FTest_Contest_PC2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274225953,"owners_count":25244618,"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-09-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2025-09-08T18:06:08.076Z","updated_at":"2025-09-20T01:44:22.750Z","avatar_url":"https://github.com/jthweb.png","language":"Java","funding_links":["https://ko-fi.com/jthweb"],"categories":[],"sub_categories":[],"readme":"# 🖥️ PC² Setup for ICPC-Style Contests (Windows)\n\nThis guide walks you through setting up the [PC² Contest Control System](https://github.com/pc2ccs) for **ICPC-style contests** on **Windows**.\n---\n\n## 🗂️ Folder Structure\n\nCreate the main directory at:  \n`C:\\pc2`\n\nDownload and extract the following tools **into this folder**.\n\n```\nC:/\n├── MinGW/\n│   └── bin/\n├── pc2/\n│   ├── kotlinc/\n│   │   └── bin/\n│   ├── pypy3.11-v7.3.20-win64/\n│   ├── pc2-9.11build/\n│   │   ├── bin/\n│   │   └── projects/\n│   │       └── WebTeamInterface-1.2/\n│   │           └── bin/\n│   ├── resolver/\n│   └── TestContest/\n│       └── config/\n```\n\n---\n\n## 🌐 Required Downloads\n\n| Tool              | Link                                                                 |\n|-------------------|----------------------------------------------------------------------|\n| PC² Nightly Build | [GitHub Releases](https://github.com/pc2ccs/nightly-builds/tags)    |\n| PyPy3             | [pypy.org](https://www.pypy.org/download.html)                      |\n| Kotlin            | [GitHub Releases](https://github.com/JetBrains/kotlin/releases)     |\n| Java + JDK        | [Java](https://www.java.com/en/download/) + [JDK](https://oracle.com/java/technologies/downloads/#jdk24-windows) |\n| MinGW             | [SourceForge](https://sourceforge.net/projects/mingw/)               |\n| ICPC Resolver     | [tools.icpc.global](https://tools.icpc.global/resolver/)             |\n\n---\n\n## ⚙️ Environment Variables\n\nUpdate your **system `PATH`** with:\n\n```\nC:\\pc2\\pc2-9.11build\\bin\nC:\\pc2\\pc2-9.11build\\projects\\WebTeamInterface-1.2\\bin\nC:\\pc2\\kotlinc\\bin\nC:\\pc2\\pypy3.11-v7.3.20-win64\\\nC:\\MinGW\\bin\nC:\\Program Files\\Java\\jre1.8.0_451\\bin\nC:\\Program Files\\Java\\jdk-24\\bin\nC:\\Program Files\\Java\\latest\\jre-1.8\\bin\n```\n\n\u003e 📝 Note: Adjust paths to match the versions you installed or the folder in which you placed the folder. Also make sure the names in the PATH have no space in them. Use underscores or other characters to fill it in.\n\n---\n\n## 🚀 Contest Launch Guide\n\n### 1. Start the Server\n\n```sh\ncd C:\\pc2\\TestContest\\config\npc2server --load \"C:\\pc2\\TestContest\\config\"\n```\n\n- Login: `site1` / `site1`\n- Set and remember a **contest password**\n\n### 2. Launch the Admin Panel\n\n```sh\npc2admin\n```\n\n- Login: `root` / `administrator1`\n- Verify CDP-loaded:\n  - Problems\n  - Groups\n  - Languages\n\nEdit and verify:\n- **Problems → Edit**\n- **Languages tab**\n- **Times → Site1 → Edit Start Time or Start Contest**\n\n### 3. Start Judge Panel\n\n```sh\npc2judge\n```\n\n- Login: `judge1` / `judge1`\n\n### 4. Start Web Team Interface (WTI)\n\n```sh\ncd C:\\pc2\\pc2-9.11build\\projects\\WebTeamInterface\npc2wti\n```\n\nThen open: [https://localhost:8080](https://localhost:8080)\n\n- Login using username and password `teamx` / `teamx` (where x is team number)\n\nAnd that's all! The server is set! Now start the contest from the admin panel by clicking on the `Times` tab and click on the site you want to start. You can also additionally change the start and end times to your system time, rather than manually starting and ending the contest.\n\n### 5. Resolve the Contest\n\nGo to the \"Reports\" tab from an \"administrator\" account or from the \"server\".\nSelect the \"Results Export Files\"\nfrom the \"Reports\" pull-down list, then press the \"Export Report Contents\" button. A window will pop up showing you\nwhere it created the reports, for example:\n\n```\npc2 results dir : reports\\report.Results_Export_Files.06.18.126.txt.files\nContest finalized : No. (Warning - contest is not finalized)\nWrote results files to:\nreports\\report.Results_Export_Files.06.18.126.txt.files\\results.tsv\nreports\\report.Results_Export_Files.06.18.126.txt.files\\scoreboard.json\nreports\\report.Results_Export_Files.06.18.126.txt.files\\awards.json\nreports\\report.Results_Export_Files.06.18.126.txt.files\\event-feed.ndjson\n```\n\nIf you are not using the nightly build, you'll have to generate 2 reports: the \"Event Feed JSON\" report and the \"awards\nJSON\" report.\n\n```sh \ncd C:\\pc2\\resolver\nresolver.bat C:\\pc2\\TestContest\\resolver\n```\n\nFollow the guide from ICPC for using the resolver \n\n\u003e 📝 Note:  Make sure to adjust the path of the resolver based on where you exported the finalized data.\n\nCongrats! You have successfully hosted your first contest using PC²!\n\n---\n\n\n## 🧑‍🤝‍🧑 Contributing\n\nPull requests are welcome! Feel free to submit improvements for:\n- Linux compatibility\n- Setup scripts\n\n---\n\n## 📄 License\n\nGNU v3.0 License. See `LICENSE` file for details.\n\n\n### Special thanks to [John Buck](https://github.com/johnbrvc) for helping me learn how to set up PC².\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthweb%2Ftest_contest_pc2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjthweb%2Ftest_contest_pc2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthweb%2Ftest_contest_pc2/lists"}