No video

AtCoder Beginner Contest

  Рет қаралды 77

Code Today

Code Today

Күн бұрын

Пікірлер: 7
@PubgMerabeta
@PubgMerabeta Ай бұрын
in C why you use k+1 ? if we have to erase 3 number then why you take k+1 ? it will get the minimum of 4 erasing numbers, nah?
@lessonsoflife8835
@lessonsoflife8835 Ай бұрын
Yes...you are correct. The loop actually goes till k only. In my template I have defined fr(i,j) to go from i to j-1. Sorry for the confusion.
@PubgMerabeta
@PubgMerabeta Ай бұрын
@@lessonsoflife8835 but bro when i go for (i=0 ; in>>k; vectorv(n) ,pre(n); mapmp; f(int i=0 ,i>v[i]; } vsort(v) ll mn = inf ; forint i=0 ,i
@PubgMerabeta
@PubgMerabeta Ай бұрын
@@lessonsoflife8835 ok ! but when i just iterate till k i got wa int mn = inf ; for(int i=0 ;i
@PubgMerabeta
@PubgMerabeta Ай бұрын
@@lessonsoflife8835 ok ! but in my code I do the same approach . go till k but got WA .. can you tell me why ? but when i go till k+1 its accepted.
@PubgMerabeta
@PubgMerabeta Ай бұрын
for(int i=0 ;i
Codeforces Bitwise Operations Practice Problems
47:24
Code Today
Рет қаралды 464
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 167 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 12 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4,1 МЛН
Nested looping  by Subhrajit sahoo Asst prof
25:44
Sahoo study centre
Рет қаралды 11
Lecture 8 | Problems on Nested Loops
1:43:05
Dsa by Ashutosh
Рет қаралды 22
A. Diagonals1995-- Codeforces-div2
28:14
Codeforces_EliteAgent
Рет қаралды 88
Optics L19
1:10:13
SKP Sir's Lakshya Academy
Рет қаралды 62
30 Best Chrome Extension To Boost Productivity
30:45
Top 10 Zone
Рет қаралды 232
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 167 МЛН