Codeforces Edu Round 111 | Problems A to E Solutions

  Рет қаралды 12,086

Utkarsh Gupta

Utkarsh Gupta

Күн бұрын

Пікірлер: 17
@adityamonu429
@adityamonu429 3 жыл бұрын
I literally wait for every editorial/explanation by you after every contest please try to make all editorials
@ashishverma1382
@ashishverma1382 2 жыл бұрын
nice explanation bahut dino baad problem C samajh aaya hai
@rishikeyyadav5717
@rishikeyyadav5717 3 жыл бұрын
Great intuition for C.thnx it helped..
@alaymehta2449
@alaymehta2449 3 жыл бұрын
You could have uploaded Kickstart solutions
@tusharbk8393
@tusharbk8393 3 жыл бұрын
Answer of A should be ceil of sqrt of n bcoz sum of first n odd numbers is n square which will be optimal solutions
@deepanshsharma4342
@deepanshsharma4342 3 жыл бұрын
An awesome explanation for C, thank you!
@kishansinha9466
@kishansinha9466 3 жыл бұрын
Please add timestamps
@shivamgupta917
@shivamgupta917 3 жыл бұрын
very clean observations Awesome!!!
@stunnerhash
@stunnerhash 3 жыл бұрын
Mannnnn i was so close to the solution to C... I figured out the logic but instead of bruteforcing i used a complex implimentation and then failed to debug it in time
@deepanshu6751
@deepanshu6751 3 жыл бұрын
A was just basic observation that max sum from n numbers can be n^2 iff all n numbers are odd so just ceil value of sqrt(s) would give n. Like max S with 3 would be 9 iff 1 3 5 are in array so if we want 10 we have to have 1 more element so ceil(sqrt(10))=4 which is our answer.
@pranavrajveer3767
@pranavrajveer3767 3 жыл бұрын
How so OTZZ
@danilzashikhin3591
@danilzashikhin3591 3 жыл бұрын
hi
@iampatelajeet
@iampatelajeet 3 жыл бұрын
Look what I did, As you can see the answer for sum n is square root n. Actually number n covers sum till n^2 from n-1^2+1 Ex: 4^2 = 16, 3^2 = 9 so for sum 10 to 16 answer will be 4 and further 5 for 17 to 25. And we know that max sum is 5000 so answer will we maximum 71. So make a loop till 71 and check which number's square is >= sum, Like every number don't have a perfect square root as sum = 24 so i = 5 is 25 which is just greater than sum and a perfect square. Hence 5 is anwer.
@jaywagner3934
@jaywagner3934 3 жыл бұрын
Ceil of square root of n
@iampatelajeet
@iampatelajeet 3 жыл бұрын
@@jaywagner3934 yup ✌
@Code_Solver
@Code_Solver 3 жыл бұрын
Great Bro can you remember me
@iampatelajeet
@iampatelajeet 3 жыл бұрын
@@Code_Solver ohh got you. 😃✌✌
Codeforces Round 735 Solutions
56:01
Utkarsh Gupta
Рет қаралды 14 М.
Codenation 29th July 2021 Hiring Test Solutions (Hard)
39:45
Utkarsh Gupta
Рет қаралды 46 М.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 34 МЛН
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,2 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 28 МЛН
Codeforces Round 753 Div3 Quick Solutions (A to H)
30:04
Utkarsh Gupta
Рет қаралды 14 М.
Maths for DSA/CP : All You Need To Know
1:07:19
Utkarsh Gupta
Рет қаралды 141 М.
Codeforces Edu 142 (Div. 2) live coding
1:21:06
Errichto Hard Algorithms
Рет қаралды 12 М.
Atcoder Beginner Contest 206 | All Tasks Solutions
30:47
Utkarsh Gupta
Рет қаралды 7 М.
E00: Software Drag Racing:  C++ vs C# vs Python - Which Will Win?
23:30
Graphs for CP: No Pre-requisites! Simplified Explanation
38:01
Utkarsh Gupta
Рет қаралды 56 М.
Codeforces Round #663 (Div. 2) Problem D Hindi Editorial: 505
14:08
Utkarsh Gupta
Рет қаралды 2,6 М.
CodeAgon 5 February Codenation Trilogy Hiring Challenge
48:09
Utkarsh Gupta
Рет қаралды 32 М.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18