Exploring one of the largest competitive programming community
"It is a mind sport, where participants write computer program to solve a set of problems within a fixed time interval, ranging from a few hours up to a month."
Codeforces is created by a group of competitive programmers from Saratov State University led by Mike Mirzayanov in 2010. It holds a wide variety of contests across the years.
Rated contests are held in an average month in 2010
Codeforces has a unique color and title system that defines user's strength. (Suggestion: Read from left to right!)
Throughout 12 years, Codeforces community has experienced exponential growth.
*Rated Users as of 2010
Let's look at data as of February 2022!
How do the submissions and accuracies change over time?
Let's get your hands dirty! Click the buttons below to sample random previous Codeforces contest and see if you can observe some trends. Try to sample at least 5 plots before looking at the author's opinion!
An error occurs. Resample again!
Eugeny has array a = a1, a2, ..., an, consisting of n integers. Each integer ai equals to -1, or to 1. Also, he has m queries:
- Query number i is given as a pair of integers li, ri (1 ≤ li ≤ ri ≤ n)
- The response to the query will be integer 1, if the elements of array a can be rearranged so as the sum ali + ali + 1 + ... + ari = 0, otherwise the response to the query will be integer 0.
Help Eugeny, answer all his queries.
This problem is adapted from Codeforces Round #182 (Div. 2). Can you solve it?
This is a naive sum problem, which could be solved brute force, greedy, or prefix sum. Actually, a fun fact is that this problem is the officially fastest solved problem in Codeforces. It is solved by left_hand in 11 seconds despite text analyzer suggests that this problem prompt takes 22 seconds to read!
Q: "I am convinced! But how should I start?"
A: "Start by registering an account and joining a contest! Wish you high rating and Welcome to Codeforces!"
contest.list
to get the list of all contestscontest.status
to get submissions of contestproblemset.problems
to get the list of all problemsuser.ratedList
to get the list of all users