Codeforces Round 865 (Div. 2) B-E / (Div. 1) A-C (video editorial)

  Рет қаралды 1,596

rembocoder

rembocoder

Күн бұрын

Пікірлер: 21
@wesleyso0
@wesleyso0 Жыл бұрын
I love your explanation for C. Super easy to understand! Thank you for your help. Keep on making these videos!
@1732ashish
@1732ashish Жыл бұрын
thank you for making these video, although I am low in rank, this is still helpful to me.
@DamianKatershorts
@DamianKatershorts Жыл бұрын
Awsome waiting for more
@harrypotteredits7265
@harrypotteredits7265 Жыл бұрын
Thanks for the video waiting for more
@ANANDKUMAR-jk9yp
@ANANDKUMAR-jk9yp Жыл бұрын
E was a very nice one!
@shuvo_14
@shuvo_14 Жыл бұрын
GReat effort! Take love and keep doing this
@aviralarpan7350
@aviralarpan7350 Жыл бұрын
This is the best codeforces contest explanation i have seen till now
@shubhamkumar3198
@shubhamkumar3198 Жыл бұрын
Thank you so much for your wonderful explanation keep posting these solution it is very helpful
@aviralarpan7350
@aviralarpan7350 Жыл бұрын
Wow, thanks a lot, really great explanation, if possible, please continue for the upcoming div2 rounds
@info_ledge1473
@info_ledge1473 Жыл бұрын
your explanation is awesome
@ash5682
@ash5682 Жыл бұрын
Thank you!
@kabboghosh1853
@kabboghosh1853 Жыл бұрын
I didn't solve in night i always know I need ur help , waiting for ur video
@culverkwan9834
@culverkwan9834 Жыл бұрын
The problems that you explained on have pairwise distinct authors. Guess who authored which!
@rembocoder
@rembocoder Жыл бұрын
It's impossible to guess.
@galihmahotama888
@galihmahotama888 Жыл бұрын
why I have to sum of those differences on even positions? can I count the sum of those differences on odd positions and if the sum is >= 0 then the output is YES, opposite the output will be NO
@rembocoder
@rembocoder Жыл бұрын
No. Why is explained in the video.
@VasheshJ
@VasheshJ Жыл бұрын
Hey, For Div2 - C, I tried the following approach and am not able to figure out it why it is giving a WA. Could you help me figure out any case it might be failing? def solve(n, array): maximum = 10 ** 9 + 1 for i in range(1, n): if array[i] < array[i - 1]: if i + 1 < n: diff = array[i - 1] - array[i] array[i + 1] += diff array[i] += diff else: print("NO") return diff = array[i-1] + maximum array[i-1] -= diff array[i] -= diff print("YES")
@rembocoder
@rembocoder Жыл бұрын
The real question is why should it work? Do you have a proof?
@VasheshJ
@VasheshJ Жыл бұрын
@@rembocoder I think it is a greedy idea of making all the initial values as minimum as possible. You can proof that all the values except the last two can be made non decreasing. Now we can just check for the last two values of the array to see if they are non decreasing or not and give the answer. Upd: somebody helped me figure out the soln…It was falling for the test case 1 7 1 1000000000 1 100000000 1 1000000000 1 I increased the maximum value by multiple of 100 and it got AC. I think the idea for the minimum value depends on how big the array values are.
@VasheshJ
@VasheshJ Жыл бұрын
@@rembocoder Thanks anyways
Codeforces Round 872 (Div. 2) - full video editorial (Div. 1 A-C)
44:16
Codeforces Round #856 (Div. 2) C, D, E - A Detailed Tutorial
46:32
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 40 МЛН
Why π^π^π^π could be an integer (for all we know!).
15:21
Stand-up Maths
Рет қаралды 3,4 МЛН
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 177 М.
Map Men vs. Geoguessr
28:07
Jay Foreman
Рет қаралды 949 М.
One of the Greatest Speeches Ever | Steve Jobs
10:31
Motivation Ark
Рет қаралды 35 МЛН
Programming with Math | The Lambda Calculus
21:48
Eyesomorphic
Рет қаралды 213 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,2 МЛН
Can Professors Tell ChatGPT Papers From Student Papers?
12:21
Student Life Newspaper
Рет қаралды 48 М.
how to study less and get higher grades
11:16
Gohar Khan
Рет қаралды 706 М.
Codeforces Round #854 by cybercats D1 + D2 - PROCESS DP
37:26
rembocoder
Рет қаралды 2 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 40 МЛН