Codeforces Round 976 (Div. 2) || Editorial for Problem A,B

  Рет қаралды 261

NICspy

NICspy

Күн бұрын

A. Find Minimum Operations || B. Brightness Begins || C. Bitwise Balancing || D. Connect the Dots
contest URL: codeforces.com...
brainstellar.c...
Contact me:-
LinkedIn - / swapnil-tayal-53a5b4221
Instagram - / swapnil_tayal
#codeforces #cp #cpp #educational #EducationalCodeforces #div2 #codeforcessolutions #editorial #educational #Codeforces976 #976

Пікірлер: 1
@nicspyy
@nicspyy 4 ай бұрын
A solution: int count_operations(int n, int k) { int operations = 0; while (n > 0) { operations += n % k; // Add the remainder to the operation count n /= k; // Move to the next higher power of k } return operations; } void solve(){ int n, k; cin >> n >> k; if(k == 1){ cout
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
DP Rerooting Idea | 1500+ DP #1 | 219D - Choosing Capital | Solving Dynamic Programming Problems
8:52
Competitive Programming with Shayan
Рет қаралды 3,2 М.
HashMaps & Dictionaries, Explained Simply
22:44
Nic Barker
Рет қаралды 17 М.
What P vs NP is actually about
17:58
Polylog
Рет қаралды 149 М.
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 63 МЛН
Large Language Models explained briefly
7:58
3Blue1Brown
Рет қаралды 1,4 МЛН
How to Stop Procrastinating and Finally Take Action
16:31
Ali Abdaal
Рет қаралды 167 М.
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,3 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН