{"id":19886821,"url":"https://github.com/jayantgoel001/codeforces","last_synced_at":"2025-05-02T16:33:05.025Z","repository":{"id":48351706,"uuid":"292146995","full_name":"JayantGoel001/CodeForces","owner":"JayantGoel001","description":"CodeForces Solution","archived":false,"fork":false,"pushed_at":"2021-07-30T14:47:28.000Z","size":1108,"stargazers_count":24,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T03:41:20.357Z","etag":null,"topics":["codeforces","cpp"],"latest_commit_sha":null,"homepage":"https://codeforces.com/problemset","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/JayantGoel001.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}},"created_at":"2020-09-02T01:25:14.000Z","updated_at":"2025-01-27T16:35:32.000Z","dependencies_parsed_at":"2022-09-10T01:31:27.541Z","dependency_job_id":null,"html_url":"https://github.com/JayantGoel001/CodeForces","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/JayantGoel001%2FCodeForces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayantGoel001%2FCodeForces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayantGoel001%2FCodeForces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayantGoel001%2FCodeForces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayantGoel001","download_url":"https://codeload.github.com/JayantGoel001/CodeForces/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252072120,"owners_count":21690167,"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":["codeforces","cpp"],"created_at":"2024-11-12T17:39:44.936Z","updated_at":"2025-05-02T16:33:04.297Z","avatar_url":"https://github.com/JayantGoel001.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeForces Solution\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\nCodeforces is a website that hosts competitive programming contests. It is maintained by a group of competitive programmers from ITMO University led by Mikhail Mirzayanov. Since 2013, Codeforces claims to surpass Topcoder in terms of active contestants. As of 2018, it has over 600,000 registered users. Codeforces along with other similar websites are used by top sport programmers like Gennady Korotkevich, Petr Mitrichev, Benjamin Qi and Makoto Soejima, and by other programmers interested in furthering their careers.\n\n\u003ctable\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd colspan=\"2\" style=\"text-align:center\"\u003e\n  \u003cimg alt=\"Codeforces logo.png\" src=\"https://github.com/JayantGoel001/CodeForces/blob/master/Codeforces_logo.png\" decoding=\"async\" width=\"250\" height=\"54\" data-file-width=\"300\" data-file-height=\"65\"\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\n  \u003cth scope=\"row\"\u003e\n  \u003cdiv style=\"display:inline-block; padding:0.1em 0;line-height:1.2em;\"\u003eType of site\u003c/div\u003e\n  \u003c/th\u003e\n  \u003ctd\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Competitive_programming\" title=\"Competitive programming\"\u003eCompetitive programming\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth scope=\"row\"\u003eAvailable\u0026nbsp;in\u003c/th\u003e\u003ctd\u003eEnglish, Russian\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth scope=\"row\"\u003eOwner\u003c/th\u003e\u003ctd\u003eMike Mirzayanov\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth scope=\"row\"\u003eCreated\u0026nbsp;by\u003c/th\u003e\u003ctd\u003eMike Mirzayanov\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth scope=\"row\"\u003eURL\u003c/th\u003e\u003ctd class=\"url\"\u003e\u003cspan class=\"url\"\u003e\u003ca rel=\"nofollow\" class=\"external text\" href=\"https://codeforces.com/\"\u003ecodeforces\u003cwbr\u003e.com\u003c/a\u003e\u003c/span\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth scope=\"row\"\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Alexa_Internet\" title=\"Alexa Internet\"\u003eAlexa\u003c/a\u003e rank\u003c/th\u003e\u003ctd\u003e6,660\u003csup id=\"cite_ref-1\" class=\"reference\"\u003e\u003ca href=\"#cite_note-1\"\u003e[1]\u003c/a\u003e\u003c/sup\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth scope=\"row\"\u003e\u003ca href=\"https://en.wikipedia.org/wiki/Registered_user\" title=\"Registered user\"\u003eUsers\u003c/a\u003e\u003c/th\u003e\u003ctd\u003e600,000\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth scope=\"row\"\u003eLaunched\u003c/th\u003e\u003ctd\u003eApril\u0026nbsp;10,\u0026nbsp;2009\u003cspan style=\"display:none\"\u003e\u0026nbsp;(\u003cspan class=\"bday dtstart published updated\"\u003e2009-04-10\u003c/span\u003e)\u003c/span\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth scope=\"row\"\u003eCurrent\u0026nbsp;status\u003c/th\u003e\u003ctd class=\"category\"\u003eActive\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/table\u003e\n\n\n# Overview\n\nThe Codeforces platform is typically used when preparing for competitive programming contests and it offers the following features:\n\n* Short (2-hours) contests, called \"Codeforces Rounds\", held about once a week.\n* Educational contests (2-2.5 hours, with 24 hours hacking period), held 2-3 times per month;\n* Challenge/hack other contestants' solutions;\n* Solve problems from previous contests for training purposes;\n* \"Polygon\" feature for creating and testing problems;\n* Social networking through internal public blogs.\n\nContestants are rated by a system similar to Elo rating system. There are usually no prizes for winners, though several times a year special contests are held, in which top performing contestants receive T-shirts. Some bigger contests are hosted on Codeforces base, among them \"The Lyft Level 5 Challenge 2018\", provided by Lyft or \"Microsoft Q# Coding Contest — Summer 2018\" provided by Microsoft.\n\nContestants are divided into ranks based on their ratings. Since May 2018, users with ratings between 1900 and 2099 can be rated in both Div. 1 and Div. 2 contests. At the same time, Div. 3 was created for users rated below 1600. The table below was up-to-date on 2018-12-26.\n\n\u003cbr/\u003e\n\u003ctable class=\"wikitable\"\u003e\n\u003ctbody\u003e\u003ctr\u003e\n\u003cth\u003eRating Bounds\n\u003c/th\u003e\n\u003cth\u003eColor\n\u003c/th\u003e\n\u003cth\u003eTitle\n\u003c/th\u003e\n\u003cth\u003eDivision\n\u003c/th\u003e\n\u003cth\u003eNumber\n\u003c/th\u003e\n\u003cth\u003eNumber (by color)\n\u003c/th\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e≥ 3000\n\u003c/td\u003e\n\u003ctd\u003eBlack \u0026amp; Red\n\u003c/td\u003e\n\u003ctd\u003eLegendary Grandmaster\n\u003c/td\u003e\n\u003ctd\u003e1\n\u003c/td\u003e\n\u003ctd\u003e23(31)\n\u003c/td\u003e\n\u003ctd rowspan=\"3\"\u003e338(594)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e2600 — 2999\n\u003c/td\u003e\n\u003ctd\u003eRed\n\u003c/td\u003e\n\u003ctd\u003eInternational Grandmaster\n\u003c/td\u003e\n\u003ctd\u003e1\n\u003c/td\u003e\n\u003ctd\u003e103(157)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e2400 — 2599\n\u003c/td\u003e\n\u003ctd\u003eRed\n\u003c/td\u003e\n\u003ctd\u003eGrandmaster\n\u003c/td\u003e\n\u003ctd\u003e1\n\u003c/td\u003e\n\u003ctd\u003e212(406)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e2300 — 2399\n\u003c/td\u003e\n\u003ctd\u003eOrange\n\u003c/td\u003e\n\u003ctd\u003eInternational Master\n\u003c/td\u003e\n\u003ctd\u003e1\n\u003c/td\u003e\n\u003ctd\u003e143(364)\n\u003c/td\u003e\n\u003ctd rowspan=\"2\"\u003e1234(2492)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e2100 — 2299\n\u003c/td\u003e\n\u003ctd\u003eOrange\n\u003c/td\u003e\n\u003ctd\u003eMaster\n\u003c/td\u003e\n\u003ctd\u003e1\n\u003c/td\u003e\n\u003ctd\u003e1091(2128)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e1900 — 2099\n\u003c/td\u003e\n\u003ctd\u003eViolet\n\u003c/td\u003e\n\u003ctd\u003eCandidate Master\n\u003c/td\u003e\n\u003ctd\u003e1/2\n\u003c/td\u003e\n\u003ctd\u003e1944(5503)\n\u003c/td\u003e\n\u003ctd\u003e1944(5503)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e1600 — 1899\n\u003c/td\u003e\n\u003ctd\u003eBlue\n\u003c/td\u003e\n\u003ctd\u003eExpert\n\u003c/td\u003e\n\u003ctd\u003e2\n\u003c/td\u003e\n\u003ctd\u003e6387(21596)\n\u003c/td\u003e\n\u003ctd\u003e6387(21596)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e1400 — 1599\n\u003c/td\u003e\n\u003ctd\u003eCyan\n\u003c/td\u003e\n\u003ctd\u003eSpecialist\n\u003c/td\u003e\n\u003ctd\u003e2/3\n\u003c/td\u003e\n\u003ctd\u003e13454(51629)\n\u003c/td\u003e\n\u003ctd\u003e13454(51629)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e1200 — 1399\n\u003c/td\u003e\n\u003ctd\u003eGreen\n\u003c/td\u003e\n\u003ctd\u003ePupil\n\u003c/td\u003e\n\u003ctd\u003e2/3\n\u003c/td\u003e\n\u003ctd\u003e19362(60964)\n\u003c/td\u003e\n\u003ctd\u003e19362(60964)\n\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e≤ 1199\n\u003c/td\u003e\n\u003ctd\u003eGray\n\u003c/td\u003e\n\u003ctd\u003eNewbie\n\u003c/td\u003e\n\u003ctd\u003e2/3\n\u003c/td\u003e\n\u003ctd\u003e8270(20125)\n\u003c/td\u003e\n\u003ctd\u003e8270(20125)\n\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/table\u003e\n\n# History\n\nCodeforces was created by a group of competitive programmers from Saratov State University led by Mikhail Mirzayanov. It was originally created for those interested in solving tasks and taking part in competitions. The first Codeforces Round was held on the February 19, 2010 with 175 participants. As of the end of July 2019 over 650 rounds were held, with over 9000 registered competitors per round on average. Before 2012 Codeforces Rounds were titled \"Codeforces Beta Rounds\" to indicate that the system was still under development.\n\n# Academic use\n\nCodeforces is recommended by many universities. According to Daniel Sleator, professor of Computer Science at Carnegie Mellon University, competitive programming is valuable in computer science education, because competitors learn to adapt classic algorithms to new problems, thereby improving their understanding of algorithmic concepts. He has used Codeforces problems in his class, 15-295: Competition Programming and Problem Solving.\n\n# Hello Barcelona ACM-ICPC Bootcamp\n\nIn February 2017, Codeforces supported the Hello Barcelona ACM-ICPC Bootcamp, a training program for students preparing for the ACM International Collegiate Programming Contest. Codeforces founder and CEO Mike Mirzayanov participated as a coach for the program, which invited 150 university students.[22] The second Barcelona bootcamp which was held from Sept 27 to Oct 5, 2017 had participants from 25 different universities including Georgia Institute of Technology, Technical University of Munich and ITMO University.\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://JayantGoel001.github.io\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/54479676?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJayant Goel\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/JayantGoel001/CodeForces/commits?author=JayantGoel001\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#ideas-JayantGoel001\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/JayantGoel001/CodeForces/commits?author=JayantGoel001\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"#maintenance-JayantGoel001\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"https://github.com/JayantGoel001/CodeForces/commits?author=JayantGoel001\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayantgoel001%2Fcodeforces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayantgoel001%2Fcodeforces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayantgoel001%2Fcodeforces/lists"}