So, here is the screencast for today's Div2 round on codeforces. I had solved A, B, C relatively fast but then could not get D. Tried some segment tree + lazy propagation but didn't work out. Discord server link: / discord
Пікірлер: 43
@farazanwar46243 жыл бұрын
Doesn't matter u will be cm or not. we are inspired by your constantly trying to be better attitude. Priyansh orzz
@048_rahulkumar53 жыл бұрын
Was only able to solve 1 Question 😞 Next time I will try harder.
@saurabhsingh63253 жыл бұрын
When he said "Not getting D" I felt that
@ParitoshPotukuchi3 жыл бұрын
Priyansh. For C I thought of building an m X 9 table which has the value for each digit from 1 to 9 for all values of m. Then for each digit refer to the table and add the values.
@PriyanshAgarwal3 жыл бұрын
I did the same
@paawansingal7883 жыл бұрын
finally its 5k🥳, kuch toh special chahiye bro😂
@pradeepbisht33973 жыл бұрын
bhai tum text cursor aage piche kese krte ho (arrow keys se koe shotcut hai)??
@vineetkumar28993 жыл бұрын
I also wanted to know this thing.
@PriyanshAgarwal3 жыл бұрын
Arrow keys
@Aman-fx8pk Жыл бұрын
at 35:35 anyone explain what is the state of this dp like dp[ j ][ i ] , what this is saying ?? according to me this should be dp[jth char][at ith step] is equal to dp[j-1th char][at (i-1)th step] , but it is giving me wa.
@learningfoundation6601 Жыл бұрын
the only thing i got after seeing these type of videos that : it is not beneficiary to any competitive programmer as you even not tells how would you came to think that the main thing in cp you have to put of diff methods that came in your mind as soon as you think just skills show off. its hard but please think over it
@noobie67843 жыл бұрын
u got a new fan!!!!
@piyushgaur69753 жыл бұрын
In problem C, line 118 of your solution can you please Elaborate what are those predefined function mod_add() ???
@PriyanshAgarwal3 жыл бұрын
mod_add() is not a predefined function. It is a function that I have created in my template. It just adds 2 numbers and returns the answer modulo some number.
@bishakhdutta8427 Жыл бұрын
@@PriyanshAgarwal can you share your template?
@Saitama-kf4oy3 жыл бұрын
Will there be post discussion? B samajh nhi aya.
@PriyanshAgarwal3 жыл бұрын
Yes. Most probably
@pokegamerspoint65773 жыл бұрын
Now lets aim for 6k bro
@ng3w4623 жыл бұрын
Hey bro could you give me a quick tip to solve fast... I figure out the logic quickly but take a lot of time to code...pls answer thanks 🙏😊 And also great content...you inspire me a lot...🙏😊
@yt_shubham_bgp3 жыл бұрын
It comes with practice
@PriyanshAgarwal3 жыл бұрын
Try to solve many 1200-1600 problems and you will start developing speed.
@joydeepdas41053 жыл бұрын
can you please explain the recurrence of c and its logic
@nikhilgautam28573 жыл бұрын
how do you auto space/indent lines what shortcut do you use ?
@PriyanshAgarwal3 жыл бұрын
I use a plugin SublimeAStyleFormatter I guess and it auto indents the code when I save/build it.
@ui.ashish3 жыл бұрын
Can you please tell us how to setup subline text please make a video
@PriyanshAgarwal3 жыл бұрын
Soon.
@anexocelisia93772 жыл бұрын
B was the game changer
@karthick... Жыл бұрын
I can't even solve div3 problems 😢😭😭
@saurabhnikam3 жыл бұрын
Hello priyansh,many beginners who stuck in problem B,C div 2,3. can u make video about prerequisite tools methods (based on ur experience so far) e.g. prefix sum,1-d dp,brute force, tough implementation approach like.... to tackle them since u where so much comfortable 🙌🙌 in this difficulty level.plz think on it it will be so helpful for us
@PriyanshAgarwal3 жыл бұрын
Sure, I will make a video on this thing as soon as I get time. Thanks for the suggestion
@saurabhnikam3 жыл бұрын
@@PriyanshAgarwal thanks so much... priyansh hatt off to ur efforts!
@RohitSingh-fh5mh3 жыл бұрын
Please make a detailed video on all your sublime text setting for cp like driver code and all the user defined function
@piyushgaur69753 жыл бұрын
Yes priyansh bhaiya please make that
@user-xm8en3ey5j8 ай бұрын
What's is the IDE that your are using??
@tmahad54474 ай бұрын
sublime text
@codeRush3 жыл бұрын
can u tell the reason for TLE in ques 3?
@PriyanshAgarwal3 жыл бұрын
You can watch the post contest discussion video for the same contest. I have covered this too in that.
@adityaagarwal16503 жыл бұрын
Please do upsolving 🙏 and share here
@prathamchitransh53383 жыл бұрын
How do u type so fast🙄😵
@PriyanshAgarwal3 жыл бұрын
Touch Typing.
@pranavchaturvedi24523 жыл бұрын
#include using namespace std; int main() { int t; cin >> t; while(t--) { long long int n,m; cin >> n >> m; string s = to_string(n),p; for(int i=0;i