A. K-divisible Sum | Educational Codeforces Round 103 | BITS PILANI

  Рет қаралды 5,390

code Explainer

code Explainer

Күн бұрын

Пікірлер: 22
@arijitdey8419
@arijitdey8419 2 жыл бұрын
Very good explanation..better way of explaining than the editorial.. thanks a lot for this
@arjunprasad1071
@arjunprasad1071 2 жыл бұрын
Great explanation !! So much better than the editorial.
@codeExplainer
@codeExplainer 2 жыл бұрын
Glad it was helpful!
@sumeetubale3923
@sumeetubale3923 2 жыл бұрын
very nice explaination sir!!
@codeExplainer
@codeExplainer 2 жыл бұрын
Thanks for liking
@softwarelanguages8324
@softwarelanguages8324 3 жыл бұрын
Thank you so much for the explaination man Really helped me
@codeExplainer
@codeExplainer 3 жыл бұрын
Glad it helped
@Pooh__7__
@Pooh__7__ 3 жыл бұрын
very nice explanation , codeforces editorial was quiet hard to understand
@codeExplainer
@codeExplainer 3 жыл бұрын
thank you so much
@ranaabhijeet497
@ranaabhijeet497 Жыл бұрын
Is this question related to book allocation problem in which we have to allocate minimum no. Of pages
@anshshah4927
@anshshah4927 3 жыл бұрын
A was done B was almost done just messed up the formula part of adding minimum number
@codeExplainer
@codeExplainer 3 жыл бұрын
ohh, you always learn new things along the way.
@sober_junkie5709
@sober_junkie5709 7 ай бұрын
very good approach, the direct formulaic answer on the editorial wasn't that good.
@motivation_hubPJ
@motivation_hubPJ 3 жыл бұрын
Can you please tell why would this solution won't work : public static void solve(int n,int k){ if(n==k)System.out.println("1"); else if(k==1)System.out.println(n); else if(n==1)System.out.println(k); else{ int max=2; while(true){ if(n*max>=k)break; max++; } System.out.println(max); } }
@adityaprakash7228
@adityaprakash7228 3 жыл бұрын
if k==1 then also ans=1.
@rajmittal5394
@rajmittal5394 2 жыл бұрын
Sir but here if n is greater than k than possible ans is always either 1 and 2 We don't have any code for this Better work
@mahipalsingh-yo4jt
@mahipalsingh-yo4jt 3 жыл бұрын
good explanation..!!!!!!!
@codeExplainer
@codeExplainer 3 жыл бұрын
Glad you liked it
@ambarjaiswal771
@ambarjaiswal771 3 жыл бұрын
I did the problem A and B but the problem A was hacked what's that mean?
@codeExplainer
@codeExplainer 3 жыл бұрын
it means there are some test case your code is missing and some other coder hacked your problem. It means some other coder run your code on some other test case which was not on pretest and your code gives wrong ans , and thus it got hacked.
@motivation_hubPJ
@motivation_hubPJ 3 жыл бұрын
I Wasn't able to do both i felt a lot tough the first problem itself
@codeExplainer
@codeExplainer 3 жыл бұрын
ya the problems are difficult.
Codeforces Round 840 Div 2 | Problem B : Incinerate Solution | Explanation+Code | Newton School
19:01
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 79 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 73 МЛН
The Quest To Make Unbreakable Glass
22:23
Veritasium
Рет қаралды 2,1 МЛН
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 567 М.
Codeforces Round 640 (Div 4)- Problem C. K-th Not Divisible by n
6:55
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Educational Codeforces Round 143 Div 2 | Problem C : Tea Tasting Solution | Newton School
27:53
Coding Community | Newton School
Рет қаралды 1,8 М.
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН