Upsolving & Reading Editorials
What is Upsolving?
Upsolving = Solving problems you couldn’t solve during a contest, after the contest ends. This is where 80% of your learning happens.The contest shows you what you don’t know. Upsolving teaches you what you need to know.
The Upsolving Process
Step 1: Wait & Reset (5-10 minutes)
After a contest:- Take a break—clear your head
- Don’t read editorials immediately
- Note which problems you attempted but failed
Step 2: Second Attempt (20-30 minutes per problem)
Before reading the editorial:- Re-read the problem statement carefully
- Check if you missed any constraint or condition
- Think about the problem type (greedy? DP? graph?)
- Try a different approach than during contest
Step 3: Read the Editorial
If you’re still stuck after 20-30 minutes, read the editorial. How to read an editorial effectively:1
Read Only the First Hint
Most editorials have multiple levels. Read just the first observation or hint.
2
Close and Try Again
With that hint, attempt the problem again for 10-15 minutes.
3
Continue Reading If Stuck
Still stuck? Read the next part of the editorial.
4
Understand, Don't Memorize
Ask yourself: “Why does this work?” not “What’s the code?”
Step 4: Implement the Solution
Even if you understand the editorial, code it yourself.Step 5: Analyze the Key Insight
Write down the key insight in your own words:Understanding CF Editorials
Structure of a CF Editorial
Reading Between the Lines
Common Editorial Phrases & Their Meanings:| Editorial Says | What It Really Means |
|---|---|
| ”Observe that…” | This is the key insight you probably missed |
| ”It’s easy to see…” | It’s not easy, but this is a standard technique |
| ”Without loss of generality…” | You can simplify by assuming something |
| ”Clearly…” | The author thinks it’s obvious (it’s not) |
| “Consider the optimal solution” | Think about what any correct answer must look like |
| ”Greedy works because…” | There’s a proof, but trust it for now |
Upsolving Workflow
Immediate Upsolve (Same Day)
Spaced Upsolving (1-7 Days Later)
Problems you’ve read editorials for:- Solve again from scratch (no looking)
- If you can’t, you didn’t truly understand
- Read editorial again if needed
- Repeat until you can solve independently
Building Your Problem Log
Create a structured log of every problem you upsolve:Template
Finding Editorials
Where to Look
Pro Tip: Official CF editorials are the gold standard. They include mathematical proofs and formal explanations that make the ideas much more intuitive than just looking at code. Understanding the “why” through proofs builds stronger pattern recognition.
| Source | Quality | Why Use It |
|---|---|---|
| Official CF Editorial | ⭐⭐⭐⭐⭐ | Mathematical proofs, formal explanations, builds intuition |
| CF Comment Section | Variable | Community insights, alternative approaches |
| CP-Algorithms | Excellent | Deep theory and implementation details |
| USACO Guide | Great | Well-structured for common problems |
Reading CF Editorials Effectively
- Focus on the proof - Understanding why something works is more valuable than the code
- Trace through the logic - Follow each observation step by step
- Identify the key invariant - What property makes the solution correct?
- Connect to similar problems - How does this proof pattern apply elsewhere?
Common Upsolving Mistakes
The Spaced Repetition System
Rating-Based Intervals
| Problem Rating | First Revisit | Second Revisit | Third Revisit |
|---|---|---|---|
| At your level | 3 days | 7 days | 30 days |
| +100 above | 2 days | 5 days | 14 days |
| +200 above | 1 day | 3 days | 7 days |
Tracking System
Create three lists:- New: Problems to upsolve
- Review: Problems to revisit
- Mastered: Problems you can solve reliably
Virtual Contest + Upsolve Combo
The most effective practice routine:Upsolving by Problem Type
Greedy Problems
- Identify the greedy choice
- Understand why greedy works (exchange argument)
- Practice recognizing the pattern
DP Problems
- Identify the state
- Write the recurrence relation
- Understand transition logic
- Practice state design on similar problems
Graph Problems
- Identify the graph structure
- Know which algorithm applies
- Practice graph construction from problem statements
Math Problems
- Identify the mathematical property
- Prove or understand the key formula
- Remember the technique for future problems
Key Metrics to Track
Weekly Goals
| Metric | Target | Purpose |
|---|---|---|
| Problems Upsolve | 10-15 | Learning new techniques |
| Problems Revisited | 5-10 | Solidifying knowledge |
| Virtual Contests | 1-2 | Simulating real conditions |
| New Patterns Learned | 2-3 | Expanding toolkit |
Monthly Review
At the end of each month:- Review your problem log
- Identify common weak areas
- Specifically practice those areas
- Celebrate progress!