Codeforces Round 758 Div1 + Div2 | Screencast | FaceCam + Commentary + KeyboardCam

  Рет қаралды 25,382

Priyansh Agarwal

Priyansh Agarwal

Күн бұрын

Пікірлер: 66
@PriyanshAgarwal
@PriyanshAgarwal 3 жыл бұрын
Thanks a ton for 20k. Love you all.
@burningdragon7880
@burningdragon7880 3 жыл бұрын
Always with you bhaiya !!♥♥♥
@shubhamagarwal2998
@shubhamagarwal2998 3 жыл бұрын
Thanks for your efforts and contribution to community 🔥🙌
@shailrajmishra7617
@shailrajmishra7617 3 жыл бұрын
Hey i just wanted to ask that did u take the CP course of coding ninjas , one of my cse friend is asking that is why
@user-it6fi8in3r
@user-it6fi8in3r 3 жыл бұрын
Well deserved
@muditkothari2211
@muditkothari2211 3 жыл бұрын
congrats brother keep going , this is just the start .
@giraffe4375
@giraffe4375 3 жыл бұрын
Really appreciate that you are uploading the screencast of the contest even after the contest went bad for you
@FkkThisShit
@FkkThisShit 3 жыл бұрын
True, respect brother 🔥🔥
@SameerKumar-xy8ky
@SameerKumar-xy8ky 3 жыл бұрын
For the first problem We can print numbers from 2 to n+1
@dipuprasad9196
@dipuprasad9196 3 жыл бұрын
You are one of the most geniune competitive programmers and down to earth
@5590priyank
@5590priyank 3 жыл бұрын
for A, we can print continuous numbers also from 2 , since only a[i] and a[i-1] should be non divisible not all pair
@kxb6098
@kxb6098 3 жыл бұрын
so this is basically a "guess the solution game". the problem setters try to put some sneaky problems which require some tricky observation and the people who are familiar with those kinds of problems or ideas solve it quickly, while others can't proceed anywhere
@mohitjaiswal5113
@mohitjaiswal5113 3 жыл бұрын
I think if B was the first problem , a lot of people would have just abandoned the contest because it was a really annoying problem. But the setters were sneaky , they intentionally gave a super easy problem with less points to lure in people and now one is screwed if stuck on edge cases on B. XDD
@mrinmoybanik5598
@mrinmoybanik5598 3 жыл бұрын
there were just 3 cases in B, and in the 1st problm we don't even need to print the primes just the first n natural no. from 2 will do.
@trevorPhillips284
@trevorPhillips284 3 жыл бұрын
So i wasn't the only one who was stuck at B
@mohitjaiswal5113
@mohitjaiswal5113 3 жыл бұрын
Lol I was successful in solving 3 , but I just felt like lots of people got screwed at B . Gave the CC Starters right now , lol one of my worst performance ever . B and C are getting WA and there is my fucking neighbor's marriage and he's playing loud music . Today was a day of mixed feelings
@Sachchin-7
@Sachchin-7 3 жыл бұрын
@@mrinmoybanik5598 yes i did the same
@lets_see_777
@lets_see_777 3 жыл бұрын
@@mrinmoybanik5598 i printed the perfect squares after 3 first then realized natural numbers would be fine too.
@codingcouch
@codingcouch 3 жыл бұрын
Always, nice to see the thought process behind all the coding.
@burningdragon7880
@burningdragon7880 3 жыл бұрын
Just for the information of the viewers, the approach for the last question ( C ) is wrong , and so sadly priyansh bhaiya is getting a wrong answer in the mains test. DW bhaiya, sab logo ka koi na koi contest kharab jata hai... We are still with you, and believe in you 💪💪
@manankabra3810
@manankabra3810 3 жыл бұрын
Long challenge has a similar question to B in this contest!
@trex9689
@trex9689 3 жыл бұрын
In C, we can apply the simple logic that if any person can beat an existing winner, then that person can also be the winner. For this, we first store the pairs (ai,bi) in a vector and reverse sort it. Now the first element of the vector will be a winner always( as it has highest value of ai). Now we iterate on the rest of the indices. If suppose we are at index i, and if for this index v[i].second>v[0].second then not only index i will be a winner but all indices from 1 to i-1 will also be winners (greater values of a). Now, since all indices from 1 to i are winners, we update v[0].second with the lowest b values among 0 to i and similarly check for the remaining values
@Sachchin-7
@Sachchin-7 3 жыл бұрын
I did almost same thing what you did in prob 3. I still cant figure it out ..what's wrong with my code.🙁
@sriram_798
@sriram_798 3 жыл бұрын
thanks for the video brl , after struggling to solve 2nd question ( i found out some logics like abs(a-b)
@Vikash_Art
@Vikash_Art 3 жыл бұрын
B question was really frustrating
@108_adityakumar6
@108_adityakumar6 3 жыл бұрын
I wasn't able to crack C.🥺🥺
@vaibhav.polska
@vaibhav.polska 3 жыл бұрын
Ugh, I struggled the same way today, was able to solve A with 1 submission and B with 6. WORST FUCKING CONTEST OF MY LIFE. UGH.
@burningdragon7880
@burningdragon7880 3 жыл бұрын
please bother, atleast dont curse the contest
@codingwithanonymous890
@codingwithanonymous890 3 жыл бұрын
atleast feel better that someone could feel me :(
@vaibhav.polska
@vaibhav.polska 3 жыл бұрын
@@burningdragon7880 Sorry Shaktimaan.
@vaibhavdawra8960
@vaibhavdawra8960 3 жыл бұрын
Please do a profile review session, it's been very long
@dharsan.s7937
@dharsan.s7937 3 жыл бұрын
Bro when u r doing Coding ninja Cp course , how do u manage both learning and general practice in codeforces
@PriyanshAgarwal
@PriyanshAgarwal 3 жыл бұрын
I didn't do a lot of CF at that time. Just focussed solely on what was being taught there.
@dharsan.s7937
@dharsan.s7937 3 жыл бұрын
@@PriyanshAgarwal u learnt Dp,graph,segment trees everything before start to do CF properly iam I right?
@nayanbhuyan8156
@nayanbhuyan8156 3 жыл бұрын
what is your typing speed?
@cipher2985
@cipher2985 3 жыл бұрын
i struggle a lot with problems like B :(
@codingwithanonymous890
@codingwithanonymous890 3 жыл бұрын
me tooo i feel demotivated and feel i dont know nothing :(
@cypher7536
@cypher7536 3 жыл бұрын
Bro it would be very helpful i f you can make a video on your template.
@_SahilShah
@_SahilShah 3 жыл бұрын
Whats that you've written before line 73 in sublime?? sorry idk as I am a newbie
@mihneacazan2480
@mihneacazan2480 3 жыл бұрын
no screencast for today's contest? xD
@alifaizan8458
@alifaizan8458 2 жыл бұрын
which theme are you using priyansh?
@sriram_798
@sriram_798 3 жыл бұрын
bro , what is the keyboard you are using , please share name or link
@ytvance1316
@ytvance1316 3 жыл бұрын
Bro I am coming to IIIT delhi for a competition on 19 dec. Will you be there??
@ankurkumar8465
@ankurkumar8465 3 жыл бұрын
Sur can u upload a solution video for problem C and also explain why your approach wasn't working... i.e. just taking max value of prefix in map2 and check if the last player can be defeated or not.
@montasirhaq
@montasirhaq 3 жыл бұрын
The colorscheme is beautiful, what's the name?
@PriyanshAgarwal
@PriyanshAgarwal 3 жыл бұрын
Brogrammer
@kanakagrawal4930
@kanakagrawal4930 3 жыл бұрын
can you provide us your code snippet
@bikashchowdhury7311
@bikashchowdhury7311 3 жыл бұрын
Please participate in the Leetcode contests also and upload the screencast. It is just a cake walk for you.🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 It will be really helpful for us.
@akhileshsinghbhadauria3355
@akhileshsinghbhadauria3355 3 жыл бұрын
my previous comment disappeared automatically but leaving that aside,there is something written in the second tab in sublime share whole thought regarding the cgpa thing.
@PriyanshAgarwal
@PriyanshAgarwal 3 жыл бұрын
Lol. That is for a session I am taking tomorrow in my college😂
@akhileshsinghbhadauria3355
@akhileshsinghbhadauria3355 3 жыл бұрын
@@PriyanshAgarwal lol spoilers in the comments
@vivekkumarmishra8320
@vivekkumarmishra8320 3 жыл бұрын
In the first question, we can also print numbers from 2 to n+1 It will still satisfy the conditions because any number>=2 is not divisible by it predecessor
@sanjaykhanka4287
@sanjaykhanka4287 2 жыл бұрын
Here, sometimes you look like kunal khemu from a certain angle when he was young like jiya dhadak song 😅
@kartiksinghkushwah4991
@kartiksinghkushwah4991 3 жыл бұрын
A single contest does not define a person. You will still be a grandmaster for me. 😌😌
@kartikeythawait1664
@kartikeythawait1664 3 жыл бұрын
I just printed 2 ,3,4......... In first question
@itz_me_imraan02
@itz_me_imraan02 3 жыл бұрын
I am from div 3 but participated in today's contest and solved the first problem but i got a -10 in my rating.. Why???
@PriyanshAgarwal
@PriyanshAgarwal 3 жыл бұрын
Also, I guess I pressed more backspace than any other key on my keyboard in this contest. 🥲
@shailrajmishra7617
@shailrajmishra7617 3 жыл бұрын
Hey i just wanted to ask that did u take the CP course of coding ninjas , one of my cse friend is asking that is why
@piyush324
@piyush324 3 жыл бұрын
No worries you'll definitely come back hard in the next contests. Let's go!!
@nikhilmeena8585
@nikhilmeena8585 3 жыл бұрын
when lion is stepping back it doesn't mean that he has lose , but actually he is making space to gain momentum , Iam considering your bad performance as stepping backwards to gain momentum to have a higher flight . I just Believe in you blindly 😍!
@PriyanshAgarwal
@PriyanshAgarwal 3 жыл бұрын
@@nikhilmeena8585 thanks for this amazing motivation
@TheArchit1
@TheArchit1 3 жыл бұрын
@@nikhilmeena8585 Lmao.
@rithwhickpraharsha6047
@rithwhickpraharsha6047 3 жыл бұрын
B took 1.5hr for me where a took 3 mins🥲
Nothing Can Stop you from Competitive Programming After This!!!
16:29
Priyansh Agarwal
Рет қаралды 78 М.
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 803 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 232 М.
Simon Sinek's Advice Will Leave You SPEECHLESS 2.0 (MUST WATCH)
20:43
Alpha Leaders
Рет қаралды 2,7 МЛН
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 342 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН