Table of Contents
Q: What is the USACO?Q: How do I participate in a USACO contest?Q: I'm not receiving an email after registering on usaco.org with my gmail account. Who do I ask for help?Q: Do I need to participate in the USACO December contest before participating in the other contests?Q: How are USACO contests scored?Q: Does passing all the test cases guarantee that my solution is correct?Q: What programming language should I use for USACO?Q: How do I submit a solution to a past USACO problem?Q: How do promotions work?Q: How do I prepare for USACO?Q: What's the best resource to get better at USACO?Q: What topics do I need to know for each of the USACO divisions?Q: Where can I find more practice problems?Q: Should I also use the USACO Training Pages?Q: I'm stuck. Where can I get help for USACO?Q: Why does the website give me WA when my code gives the correct answer on my own computer?Q: What's wrong with my code?Q: Where can I find USACO test data and official solutions?Q: When should I read the USACO official solutions?Q: Should I implement every problem that I solve?Q: What Codeforces rating corresponds to each of the USACO divisions?Q: Where can I find the answer to a question that isn't answered here?Closing ThoughtsUSACO FAQs
Authors: USACO Finalists, Darren Yao
Answers to frequently asked questions about the USA Computing Olympiad.
Table of Contents
Q: What is the USACO?Q: How do I participate in a USACO contest?Q: I'm not receiving an email after registering on usaco.org with my gmail account. Who do I ask for help?Q: Do I need to participate in the USACO December contest before participating in the other contests?Q: How are USACO contests scored?Q: Does passing all the test cases guarantee that my solution is correct?Q: What programming language should I use for USACO?Q: How do I submit a solution to a past USACO problem?Q: How do promotions work?Q: How do I prepare for USACO?Q: What's the best resource to get better at USACO?Q: What topics do I need to know for each of the USACO divisions?Q: Where can I find more practice problems?Q: Should I also use the USACO Training Pages?Q: I'm stuck. Where can I get help for USACO?Q: Why does the website give me WA when my code gives the correct answer on my own computer?Q: What's wrong with my code?Q: Where can I find USACO test data and official solutions?Q: When should I read the USACO official solutions?Q: Should I implement every problem that I solve?Q: What Codeforces rating corresponds to each of the USACO divisions?Q: Where can I find the answer to a question that isn't answered here?Closing ThoughtsQ: What is the USACO?
The USA Computing Olympiad is a national programming competition that occurs four times a year, with December, January, February, and US Open (March) contests. The regular contests are four hours long, and the US Open is five hours long. Each contest contains three problems. Solutions are evaluated and scored against a set of predetermined test cases. Scoring is out of 1000 points, with each problem being weighted equally (~333 points). There are four divisions of contests: Bronze, Silver, Gold, and Platinum. After each contest, students who meet the contest-dependent cutoff for promotion will compete in the next division for future contests.
Q: How do I participate in a USACO contest?
Register for a (free) account on usaco.org, then wait until the four-day contest window starts. When the contest window begins, the USACO homepage will update with instructions on how to participate.
usaco.org with my gmail account. Who do I ask for help?
Q: I'm not receiving an email after registering onThis is a known issue. If you encounter any technical issues with usaco.org, contact the USACO contest director (Brian Dean). Do not submit to the USACO Guide contact form; the USACO Guide is not affiliated with the USACO, so we won't be able to help you.
Q: Do I need to participate in the USACO December contest before participating in the other contests?
No.
Q: How are USACO contests scored?
Resources | ||||
---|---|---|---|---|
USACO | ||||
USACO |
USACO contests are scored out of points. Each problem is worth points. When a solution to a problem is submitted, it is run against a number of test cases (see the second link above for details). All test cases for a problem (typically 10-30) are weighted equally, except the sample test case(s), which do not count toward your score. Inputs and outputs for test cases other than the sample test cases are not visible during the contest.
For example, Cow College has 1 sample test case (test case 1) and 11 non-sample test cases (test cases 2-12). For each of test cases 2-12 you get correct, you earn points.
Q: Does passing all the test cases guarantee that my solution is correct?
No, it is entirely possible that there is a test case for which your solution fails. In the extremely rare case that test cases are added after the end of the contest, solutions that previously received full credit often fail to receive full credit afterward.
In general, it is extremely difficult to check that your solution is correct with 100% certainty, but one way to check that there isn't anything obviously wrong with your solution is to stress test against a model solution.
Q: What programming language should I use for USACO?
The most popular languages that USACO supports are C++, Java, and Python. In general, we recommend the following:
- If you already know one or more of these languages, just use the one you are most comfortable with.
- If you don't know any of these languages, you might as well start with C++, as C++ users generally don't need to worry as much about their solutions being a constant factor too slow. Furthermore, most modules currently lack Java and Python support.
Don't overthink choosing a language -- you can always change languages later!
We cover choosing a language in more detail in our "Choosing a Language" module.
Q: How do I submit a solution to a past USACO problem?
This module includes example solutions and instructions on how to submit them.
Q: How do promotions work?
All contestants start in the Bronze division. At the end of the contest, a "cutoff score" for each division is determined based on the difficulty of the contest. If your score is at least the cutoff score for your division, then you get permanently promoted to the next division. Historically, the cutoff score has always been a multiple of points in the range (typically ).
If you get a perfect score during the contest (i.e., you fully solve all three problems), then you get an in-contest promotion, where you immediately get promoted to the next division. You can start the next division's contest whenever you want during the contest window; your four- or five-hour timer resets when you start the contest.
Once you are familiar with your language of choice, you can solve the following problem to check your understanding:
Focus Problem – try your best to solve this problem before continuing!
View Internal SolutionQ: How do I prepare for USACO?
Learn algorithms, do practice problems, and reflect on why you're missing problems. Make sure you learn from every problem you do, and you'll improve over time. If you're looking for a guided roadmap to improve at USACO, check out the USACO Guide (that's this site!).
If you want to get better at USACO, the key thing is to do more practice!
Q: What's the best resource to get better at USACO?
We made the USACO Guide specifically to provide high-quality resources to help people get better at USACO; we encourage you to give it a shot! We also list additional resources that you may find helpful. Additionally, USACO has its own resources page.
Q: What topics do I need to know for each of the USACO divisions?
While there is no official USACO syllabus, we've compiled topics for each division from historical contests:
Q: Where can I find more practice problems?
Codeforces -- you can search by tag, difficulty level, etc.
For additional sources of problems, check the contests page.
USACO Training Pages?
Q: Should I also use theYou might find them useful. Keep in mind that they:
- Are not beginner friendly, as noted by Rob Kolstad himself here.
- Don't allow you to view the solution for a problem until you solve it. Don't allow you to move past a section until you've solved all the problems in it.
- Though some people consider this a plus (as mentioned here).
- Don't cover many topics that appear frequently in current contests (such as segment trees), as noted here.
Q: I'm stuck. Where can I get help for USACO?
We recommend you go to the
(unofficial) USACO Forum to get help when you're
stuck. Alternatively, you can join the
(unofficial) USACO Discord Server. They
have channels called #discussion
and #help
dedicated to questions
about competitive programming.
Q: Why does the website give me WA when my code gives the correct answer on my own computer?
It's likely due to undefined behavior; see this module for more information.
Q: What's wrong with my code?
Please follow all the instructions in this forum post. You can try asking on the forum, but if it's clear that you haven't followed all of the instructions, likely the only response you will receive is to follow the instructions more carefully.
Q: Where can I find USACO test data and official solutions?
From the problem page, click "Return to Problem List," and then "Test Data" or "Solution" under the corresponding problem.
Q: When should I read the USACO official solutions?
It really comes down to personal preference; there's no right or wrong answer -- do what works for you! With that being said, we've asked numerous top USACO competitors what they think about this question. This module lists their thoughts on how to effectively practice for USACO.
Q: Should I implement every problem that I solve?
Usually, yes (unless the problem is significantly too easy for you). Solving competitive programming problems consists of two parts: coming up with the algorithm, and implementing the algorithm. You should implement so that you practice both parts.
Q: What Codeforces rating corresponds to each of the USACO divisions?
Codeforces rating and USACO divisions can't be directly compared since CF emphasizes solving more problems in a shorter time period (CF contests have 5-8 problems in 2-3 hours, while USACO contests have 3 problems in 4-5 hours). However, here are some very rough estimates:
- USACO Bronze competitors are probably <1300 rated on CF, and Bronze problems correspond to 900-1500 rated CF problems.
- USACO Silver competitors are probably 1200-1500 rated on CF, and Silver problems correspond to 1200-1900 rated CF problems.
- USACO Gold competitors are probably 1500-1800 rated on CF, and Gold problems correspond to 1500-2200 rated CF problems.
- USACO Platinum competitors are probably 1650+ rated on CF, and Platinum problems correspond to 1900+ rated CF problems. (Note that at the Platinum level there is a lot of variation in CF ratings.)
Again, CF problems and contests are significantly different from USACO!
Q: Where can I find the answer to a question that isn't answered here?
You can probably find the answer at usaco.org or by googling. Answers to additional FAQs can be found here, though some of them are out of date.
You can also ask a question by submitting the "Contact Us" form on the bottom-left of this page, or on the USACO Forum.
Closing Thoughts
We hope you've found this FAQ useful! Best of luck on your competitive programming journey!
Module Progress:
Join the USACO Forum!
Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!