Codeforces Round 802 (Div-2) | Solutions | A-B-C-D

  Рет қаралды 8,720

Naman Bansal

Naman Bansal

Күн бұрын

Пікірлер: 45
@ankitsinha4454
@ankitsinha4454 2 жыл бұрын
Congratulations for your perseverance man.. wishing you all the best for all future endeavors!!!
@PravinShankhapal1
@PravinShankhapal1 2 жыл бұрын
Congo for CM
@rishav144
@rishav144 Жыл бұрын
unfortunately , he slipped to expert now...Also left Doing contests and KZbin live stream as well .... 😣
@judgebot7353
@judgebot7353 2 жыл бұрын
bro please come back . We're eagerly waiting for your tutorials 🥺
@devteams9715
@devteams9715 2 жыл бұрын
only channel which is continuously covering all CF contest. Thank you, keep going. Congrats for CM and 5K
@yashkhatwani3198
@yashkhatwani3198 2 жыл бұрын
Amazing explanation bhaiya and you are so calm while explaining its nice
@alokdhal6648
@alokdhal6648 2 жыл бұрын
Really great way of explaining 😃...Keep posting ...and inform before hand which contest poblems you will upsolve so that i will never miss that contest
@TECHADVICETEAM
@TECHADVICETEAM 2 жыл бұрын
Congrats for 5k and CM!!!
@camlot6326
@camlot6326 2 жыл бұрын
Congratulations sir for becoming Candidate master
@aocpc_community
@aocpc_community 2 жыл бұрын
Yóh, broh. Your teaching skills are amazing 🤓! I could understand the main part of the problems, but in problem D I couldn't figure out clearly why you applied BINARY SEARCH OVER THE ANSWER and the idea behind that. 🤔
@ssv6055
@ssv6055 2 жыл бұрын
yeah bhaiya...where are you ?
@programmertik2046
@programmertik2046 2 жыл бұрын
As you explained in C that we should consider making alll elements as ( maximum-minimum) In the third test case 4 -4 4 -4 why arent you considering (-8) as (4-(-4))=8 so we should make all -8 right ??
@Cicada-ru6sh
@Cicada-ru6sh 2 жыл бұрын
wo edge case ha
@theresweet984
@theresweet984 2 жыл бұрын
seems your T-shirt never gonna change :')
@udaykiran4404
@udaykiran4404 2 жыл бұрын
Sir can say CP books for beginner please
@mayankdutta2832
@mayankdutta2832 2 жыл бұрын
amazing bro !
@shreyashachoudhary480
@shreyashachoudhary480 2 жыл бұрын
Congrats man!
@alltechpoint8508
@alltechpoint8508 2 жыл бұрын
Thanks for editorial
@pranav9068
@pranav9068 2 жыл бұрын
This time I was able to visualise the process but was not able to physically code it
@saurabhkumarsingh9550
@saurabhkumarsingh9550 Жыл бұрын
Please make more videos 🙏🏻
@abhishekprajapat415
@abhishekprajapat415 2 жыл бұрын
Nice video. It will be better if you can make your camera video smaller. I have a small 13inch screen hence a wider view of the whiteboard and screen will be much appreciated.
@giraffe4375
@giraffe4375 2 жыл бұрын
Thank you
@kailasanischal6790
@kailasanischal6790 2 жыл бұрын
Why is this giving wrong for B... n=no of dgts,m=number int ans=0,max=0; int firstdgt=(int)(m/((int)Math.pow(10,n-1))); if(firstdgt!=9){ max=(int)Math.pow(10,n)-1; } else{ for (int i = n; i >=0; i--) { max+=(long)Math.pow(10,i); } } ans=max-m; out.println(ans);
@shivi3157
@shivi3157 2 жыл бұрын
👀🔥
@Sksahu_123
@Sksahu_123 2 жыл бұрын
congrats man for cm
@girishbhargava6367
@girishbhargava6367 2 жыл бұрын
Congrats for becoming a candidate master once again. Just one advice, instead of using so much header files, you can use #include. It doesn't look good for a CM to not include so many individual header files. 🤪🤪🤪🤪🤪🤪
@camlot6326
@camlot6326 2 жыл бұрын
its slow down compilation time, as it has to process much more file, so many coder use all required libraries instead of bits/stdc++
@girishbhargava6367
@girishbhargava6367 2 жыл бұрын
@@camlot6326 okay man, thanks for this knowledge.
@EpsilonCodes
@EpsilonCodes 2 жыл бұрын
@@camlot6326 not necessarily, you can precompile headers.
@aasthagoyal5059
@aasthagoyal5059 2 жыл бұрын
In last que what we are trying to find by binary search...also if anyone can share logic also
@xarma
@xarma 2 жыл бұрын
congo for CM
@fawazelahi2171
@fawazelahi2171 2 жыл бұрын
In question b , if it's 91 ,then what?
@NiketBahety
@NiketBahety 2 жыл бұрын
10
@TonyStark-lj9vw
@TonyStark-lj9vw 2 жыл бұрын
@@NiketBahety its 20
@NiketBahety
@NiketBahety 2 жыл бұрын
@@TonyStark-lj9vw actually it can be anything from 10 20 30 .....90
@TonyStark-lj9vw
@TonyStark-lj9vw 2 жыл бұрын
@@NiketBahety bruh i was just saying because we are considering all 1s case so it will be 20
@NiketBahety
@NiketBahety 2 жыл бұрын
@@TonyStark-lj9vw ohh alright 👍
@01utpalraj95
@01utpalraj95 2 жыл бұрын
I think 4th is more easier than c
@xarma
@xarma 2 жыл бұрын
sure thing
@champion5946
@champion5946 2 жыл бұрын
Problem B: Python import sys import math def gt(): return map(int, sys.stdin.readline().strip().split()) # x = list(map(int,input().split())) t = int(input()) while t>0: n = int(input()) m = int(input()) s1 = "9" * n s2 = "1" * (n+1) if str(m)==s1: print(int(s2)-m) else: s3 = "1"*(n-1) s3 += "2" if m
@amanagrahari8511
@amanagrahari8511 2 жыл бұрын
1023 ko 1111 me kaise bdlenge , plz advise me
@BCS_VickyGupta
@BCS_VickyGupta 2 жыл бұрын
we cant do that as bcoz the size will be different btw it will be 11111 (five one not four).., Instead of converting to 11111 try to convert it into 9999 you'll get the same size digit
@BCS_VickyGupta
@BCS_VickyGupta 2 жыл бұрын
we cant do that as bcoz the size will be different btw it will be 11111 (five one not four).., Instead of converting to 11111 try to convert it into 9999 you'll get the same size digit
@yogeshagarwal8537
@yogeshagarwal8537 2 жыл бұрын
I was even not able to solve problem C manually🥲🥲
Codeforces Round 801 (Div-2) | Solutions
59:32
Naman Bansal
Рет қаралды 4,7 М.
Codeforces Round 793 (Div-2) | Solutions | A-B-C-D
42:25
Naman Bansal
Рет қаралды 5 М.
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 118 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 32 МЛН
TypeDB Forces 2023 (Div-1 +) Div-2 | Solutions
1:00:47
Naman Bansal
Рет қаралды 5 М.
Educational Codeforces Round 127 (Div-2) | Solutions | A-B-C-D
48:15
Codeforces Round 781 (Div-2) | Solutions | A-B-C
33:35
Naman Bansal
Рет қаралды 3,5 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,4 МЛН
Screencast of 7th place in Codeforces Round 812 (Div. 2)
41:40
Nothing Can Stop you from Competitive Programming After This!!!
16:29
Priyansh Agarwal
Рет қаралды 76 М.
Helping The Nature || Codeforces Round 802 Div2 Problem C
12:52
Competitive Coding - Newton School
Рет қаралды 2,8 М.
Codeforces Round #853 (Div-2) | Solutions | A-B-C
44:45
Naman Bansal
Рет қаралды 2,1 М.
Codeforces Round #856 (Div-2) | Solutions | A-B-C
24:37
Naman Bansal
Рет қаралды 2,7 М.
Did somebody say... Div 4?!? (Solutions and 22 minute Speedrun)
58:48
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 118 МЛН