Back to Browse

Codeforces 2025 | GamingForces Problem Solving | Minimum Spell Casts to Kill Monsters

16 views
Oct 15, 2025
26:01

🔥 In this video, we solve the GamingForces problem from Codeforces! Monocarp is playing a game where he must defeat n monsters with two types of spells: 1️⃣ Reduce health of two monsters by 1 2️⃣ Instantly kill one monster We need to find the minimum number of spells Monocarp must cast to kill all monsters efficiently. 💡 In this video, I explain the optimal strategy, walk through examples, and write a step-by-step solution in C++. Whether you're preparing for competitive programming or just love problem-solving, this video will help you understand game strategy algorithms and optimization techniques. ✅ Topics Covered: 1.Greedy Algorithms 2.Optimal Spell Casting Strategy 3.Test Case Analysis 4.Step-by-step Code Explanation problem link : https://codeforces.com/contest/1792/problem/A

Download

1 formats

Video Formats

360pmp441.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Codeforces 2025 | GamingForces Problem Solving | Minimum Spell Casts to Kill Monsters | NatokHD