Skip to main content

📅 Contest Day Mastery

The difference between solving 3 problems and 4 problems is rarely skill—it’s strategy, focus, and energy management. This chapter gives you the complete playbook for contest day. Contest Day Timeline

☀️ Pre-Contest Routine (2 Hours Before)

The Warm-Up Protocol

Never start a rated contest cold. Your brain needs 15-30 minutes to switch into “competitive mode.”
// Solve 2-3 easy problems (800-1000 rated) before the contest
// This activates your problem-solving circuits
// Choose problems from topics you're comfortable with
Warm-up Routine

Pre-Contest Checklist

1

Physical Preparation (2 hours before)

  • Light meal (avoid heavy food—blood goes to digestion, not brain)
  • Hydrate well (dehydration = slower thinking)
  • 10 minutes of light movement (walk, stretch)
  • Bathroom break (nothing worse than urgency during problem D)
2

Technical Setup (1 hour before)

  • Open your template in VS Code
  • Test compile: make sure everything works
  • Open Codeforces/contest page
  • Clear browser cache if needed
  • Close ALL other tabs and apps
  • Phone on silent, face down
3

Mental Preparation (30 minutes before)

  • Solve 2 easy warm-up problems
  • Review your cheat sheet / templates
  • Take 3 deep breaths
  • Positive self-talk: “I’ve prepared. I’ll do my best.”
4

Final 5 Minutes

  • Refresh contest page
  • Have water bottle ready
  • Clear your desk
  • Set a timer visible on screen
  • Focus. Breathe. Begin.

⏱️ Live Contest Strategy

The First 5 Minutes

First 5 Minutes Strategy
// Minute 0-1: Open ALL problems (Ctrl+Click each in new tab)
// Minute 1-3: SCAN all problems (just titles + first line)
// Minute 3-5: Read Problem A fully, start coding

// WHY: Sometimes A is harder than B
// You want awareness of all problems before diving deep

Time Allocation Strategy

Rating TargetProblem AProblem BProblem CProblem DProblem E
Specialist (1400)10 min20 min40 min50 min-
Expert (1600)8 min15 min30 min40 min27 min
Candidate Master5 min10 min20 min35 min40 min
The 20-Minute Rule: If you’ve spent 20 minutes on a problem with ZERO progress, MOVE ON. Read the next problem. Fresh eyes often find solutions.

Problem Selection During Contest

Problem Decision Tree
For each problem, ask:
1. Do I understand what it's asking? (1 min to decide)
2. Do I see a clear approach? (3 min to decide)
3. Am I confident I can implement it? (5 min to decide)

If any answer is "No" after time limit → SKIP, try next problem

Adaptive Strategy

When Stuck on C

  • Read problem D and E
  • Sometimes D is easier than C for YOUR skill set
  • Getting D before C is perfectly valid
  • Don’t let problem order limit you

When Everything Seems Hard

  • Take 30 seconds, close eyes, breathe
  • Go back to the easiest unsolved problem
  • Simplify: solve for n=1, n=2, n=3
  • Sometimes panic blinds you to simple solutions

🕐 Time Management Tactics

The Pomodoro for CP

Contest Pomodoro
2-hour contest breakdown:
[0:00 - 0:30]  Problems A + B (high urgency, quick wins)
[0:30 - 1:00]  Problem C (deep focus)
[1:00 - 1:05]  BREAK: Stand up, stretch, drink water
[1:05 - 1:35]  Problem D (or C if still working)
[1:35 - 2:00]  Final push: debug or attempt E

When to Submit vs When to Test More

// SUBMIT FAST if:
// - Problem is clearly correct (greedy with proof)
// - You've tested 3+ edge cases
// - You're running low on time

// TEST MORE if:
// - There are tricky edge cases (n=0, n=1, negative)
// - Implementation was complex
// - You have time remaining
// - Problem has tight constraints (likely tricky cases)

The Last 10 Minutes

Never start implementing a new solution in the last 10 minutes.Use this time for:
  • Debugging current submissions
  • Rethinking a problem you skipped
  • Stress testing solutions you’re unsure about

🐛 Dealing with WA During Contest

The WA Response Protocol

WA Response Protocol
1

Don't Panic (10 seconds)

Take a breath. WA is normal. Even tourists get WA.
2

Check the Obvious (30 seconds)

  • Integer overflow?
  • Array bounds?
  • Wrong data type (int vs long long)?
  • Output format (newline at end)?
3

Trace Sample Case (1 minute)

  • Does your code produce correct output for samples?
  • If not, debug with samples first
  • If yes, your logic might be wrong on edge cases
4

Generate Edge Cases (2 minutes)

  • n = 1 (minimum size)
  • All same elements
  • All different elements
  • Maximum values
  • Sorted / reverse sorted input
5

Stress Test (if time permits)

  • Generate random small inputs
  • Compare with brute force
  • Find the failing case

Common WA Causes (Quick Checklist)

// 1. Integer Overflow
int a = 1e9, b = 1e9;
int wrong = a * b;  // OVERFLOW!
long long right = (long long)a * b;  // Correct

// 2. Array Index
for(int i = 0; i <= n; i++)  // Should be i < n?

// 3. Uninitialized Variables
int dp[N][M];  // Random values! Use memset or fill

// 4. Modular Arithmetic
ans = (ans + x) % MOD;  // What if x is negative?
ans = ((ans + x) % MOD + MOD) % MOD;  // Safe version

// 5. Off-by-one in Binary Search
while(l < r) vs while(l <= r)  // Different semantics!

💓 Energy & Focus Management

The Focus Curve

Focus Curve
Typical focus pattern during 2-hour contest:
[0:00 - 0:45]  HIGH focus (use for hardest thinking)
[0:45 - 1:15]  MEDIUM focus (fatigue starts)
[1:15 - 1:30]  DIP (take micro-break if possible)
[1:30 - 2:00]  RECOVERY (adrenaline of deadline)

Micro-Recovery Techniques

The 20-20-20 Rule

Every 20 minutes, look at something 20 feet away for 20 seconds. Prevents eye strain and mental fatigue.

Box Breathing

When stressed: Breathe in 4s → Hold 4s → Out 4s → Hold 4s. Resets your nervous system.

Shoulder Rolls

3 forward, 3 backward. Releases tension that builds up during intense focus.

Water Sips

Small sips every 20-30 minutes. Dehydration reduces cognitive performance by 10%+.

🌙 Post-Contest Protocol

Immediate Post-Contest (First 30 minutes)

Do NOT immediately upsolve. Your brain is tired. Rest first.
1

Cool Down (5 minutes)

  • Stand up, stretch, walk around
  • Drink water
  • Let the adrenaline fade
2

Quick Reflection (10 minutes)

Write answers to:
  • What went well?
  • What could be better?
  • Any patterns in my mistakes?
3

Read Editorial (15 minutes)

  • Don’t code yet, just understand
  • Focus on problems you attempted but didn’t solve
  • Note any new techniques

Upsolving Schedule

Day of contest: Read editorials only, no coding
Day after: Implement 1-2 unsolved problems
2 days after: Implement remaining problems
1 week later: Re-attempt hardest problem from scratch

The Mistake Journal Entry

After each contest, fill this template:
## Contest: Codeforces Round #XXX
## Date: YYYY-MM-DD
## Performance: Solved X/Y, Rank: ZZZZ

### Problem A: [Name]
- Time: X minutes
- Status: ✅ / ⚠️ WA / ❌ Unsolved
- Key insight: 
- Mistake made (if any):

### Problem B: [Name]
...

### Lessons Learned:
1. 
2. 
3. 

### Action Items for Next Contest:
1. 
2. 

🏆 Contest Day Mental Game

Pre-Contest Affirmations

Read these before every contest:
1. "I've prepared. I deserve to be here."
2. "Mistakes are learning opportunities, not failures."
3. "I focus on process, not rating."
4. "Every problem I solve makes me stronger."
5. "I am calm, focused, and ready."

During Contest Self-Talk

When Stuck

“This is normal. Take a breath. Try a different approach.”

When Behind

“Others don’t matter. I focus on MY best performance.”

After WA

“Good catch. Now I know what to fix. Let’s debug.”

When Tired

“20 more minutes. I can do this. Stay present.”

📈 Virtual Contest Protocol

Making Virtuals Count

Virtual contests MUST feel real to be useful. Don’t pause. Don’t look up solutions. Don’t extend time.
Virtual vs Real Contest

Virtual Contest Rules

TREAT LIKE RATED:
✅ Same pre-contest routine
✅ Same 2-hour time limit (strict!)
✅ No looking anything up during
✅ Same post-contest analysis

THE BENEFIT:
- Practice under pressure without rating risk
- Experiment with different strategies
- Build endurance for 3-hour contests

Ideal Virtual Contest Schedule

DayActivity
MondayVirtual contest (old Div2)
TuesdayUpsolve virtual + practice
WednesdayPractice weak topics
ThursdayVirtual contest (old Div2)
FridayUpsolve + review
SaturdayRATED contest (if available)
SundayRest / light practice

Contest Day Checklist Summary

Print this and keep it by your desk:
PRE-CONTEST (2 hours before):
☐ Light meal + hydration
☐ Physical warm-up (stretch, walk)
☐ Technical setup complete
☐ Warm-up problems solved
☐ Templates open and tested
☐ Distractions eliminated

DURING CONTEST:
☐ Read ALL problems first (5 min)
☐ Solve in optimal order (not always A→B→C)
☐ Use 20-minute rule for skipping
☐ Micro-breaks every 30 minutes
☐ Don't panic on WA - follow protocol

POST-CONTEST:
☐ Cool down (don't upsolve immediately)
☐ Quick reflection (what went well/wrong)
☐ Read editorials
☐ Fill mistake journal
☐ Upsolve within 48 hours

Master the process, and the results will follow.The best competitive programmers have consistent rituals—they don’t rely on motivation or luck. Build your routine, trust your preparation, and show up ready to compete.See you on the leaderboard! 🏆