USACO Guide
Getting Started
Using This GuideIntroduction to Competitive ProgrammingChoosing a LanguageResources: Learning to CodeRunning Code OnlineData TypesInput & OutputExpected Knowledge
Contributing
ContributingAdding SolutionsIntroducing ModulesWorking With MDX
General Resources
How to DebugHow to PracticeContest StrategyResources: Competitive ProgrammingContestsOlympiads
Language-Specific
Running Code LocallyC++ With the Command LineFast Input & OutputBasic DebuggingDebugging C++(Optional) C++ - Writing Generic Code(Optional) C++ - Lambda Expressions
USA
USACO FAQsUSACO MonthliesUSACO CampResources: USA-Specific
Settings

USACO Silver 2021 February - Year of the Cow

Author: Melody Yu (Video)

Edit This Page
View Problem Statement

Official Analysis

Video Solution

Note: The video solution might not be the same as other solutions. Code in C++.

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!

Join Forum