Codeforces Round 972 (Div 2) | Video Solutions - A to E | by Gaurish Baliga | TLE Eliminators

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.ย. 2024

ความคิดเห็น • 31

  • @TLE_Eliminators
    @TLE_Eliminators  4 วันที่ผ่านมา +1

    Please fill the Feedback form for PCD: forms.gle/7bQH8sLcTpFDQGU26

  • @mursalinhawlader6407
    @mursalinhawlader6407 3 วันที่ผ่านมา +7

    this teacher ka solution daily chai

  • @shreyanshjain1595
    @shreyanshjain1595 3 วันที่ผ่านมา +5

    best ever PCD ❣
    keep him in every pcd please😭

  • @vikassharma4-yearb.tech.mi375
    @vikassharma4-yearb.tech.mi375 3 วันที่ผ่านมา +2

    For solution B1 & B2 -
    if (right ==m ) cout

  • @nemesis5391
    @nemesis5391 3 วันที่ผ่านมา +1

    In B for the case when David is between teachers we know that David is going to the middle of left and right values optimally so we can just use that and our answer will be min(distance of mid from left, distance of mid from right)

  • @ramchhabra1223
    @ramchhabra1223 2 วันที่ผ่านมา +1

    nice solution and elegant explanation

  • @achintyachauhan350
    @achintyachauhan350 3 วันที่ผ่านมา +1

    For A. i created an empty string s, and a vowels consisting all vowels, then ran a looop from i to n and added vowels[i%%5] to the s string , and at last sorted the s string , and all done .

  • @sukumarsawant
    @sukumarsawant วันที่ผ่านมา +1

    Upsolving A & B

  • @shreyanshjain1595
    @shreyanshjain1595 3 วันที่ผ่านมา +1

    PLEASE UPLOAD ATCODER SOLUTIONS ALSO😭

  • @priyanshvatsal9791
    @priyanshvatsal9791 7 ชั่วโมงที่ผ่านมา

    Thank you so much

  • @nemesis5391
    @nemesis5391 3 วันที่ผ่านมา

    For A we can just use a frequency array and set count of every vowel as n/5 and then increase each vowel for each extra required ie n%5, and use ans+=string (freq[i], vowel [i])

    • @hitesh1800
      @hitesh1800 3 วันที่ผ่านมา

      would u please provide me your code

    • @nemesis5391
      @nemesis5391 3 วันที่ผ่านมา

      @@hitesh1800 #include
      using namespace std;
      #define ll long long
      int main(){
      int t;
      cin>>t;
      while(t--){
      int n;cin>>n;
      string str="";
      string vowel="aeiou";
      if(n>5){
      int freq1=n/5;
      int extra=n%5;
      vector freq(5);
      for(int i=0;i

    • @nemesis5391
      @nemesis5391 3 วันที่ผ่านมา

      @@hitesh1800 #include
      using namespace std;
      #define ll long long
      int main(){
      int t;
      cin>>t;
      while(t--){
      int n;cin>>n;
      string str="";
      string vowel="aeiou";
      if(n>5){
      int freq1=n/5;
      int extra=n%5;
      vector freq(5);
      for(int i=0;i

    • @nemesis5391
      @nemesis5391 3 วันที่ผ่านมา

      @@hitesh1800 #include
      using namespace std;
      #define ll long long
      int main(){
      int t;
      cin>>t;
      while(t--){
      int n;cin>>n;
      string str="";
      string vowel="aeiou";
      if(n>5){
      int freq1=n/5;
      int extra=n%5;
      vector freq(5);
      for(int i=0;i

  • @vasist2936
    @vasist2936 3 วันที่ผ่านมา

    for the first question i used this :
    cout

  • @ritishrai581
    @ritishrai581 3 วันที่ผ่านมา

    I'm not getting B1 at all . If the teachers are moving simulatenously then the gap just keeps increasing lets say we have the teachers at 2 and 60 and david at 4 . Now if the teachers want to close in the gap , if one teacher goes to 3 the other teacher will go to 61 . Like david can keep going ahead in the case . How will the gap close ? if we are moving david to the middle how will the gap close ??

    • @gaurishbaliga3723
      @gaurishbaliga3723 3 วันที่ผ่านมา

      Its not necessary that all teachers move in the same direction. 2 teachers can move in different directions. So one teacher would move to 3 and the other to 59

    • @ritishrai581
      @ritishrai581 3 วันที่ผ่านมา

      @@gaurishbaliga3723 Oh shoot . I read the statement wrong sorry . After your comment I tried to configure out the approach by myself I don't get it why it's wrong can you please help me ?? What I'm basically doing is calculating the middle value of both the teachers for the last case . T1 + T2 / 2 and then I know that david will definitely move to this middle value and those steps would be counted and also along with that the distance between the min teacher and david will also be counted . So the final distance is (T1 + T2)/2 + minDis of david from either of the teacher . I tried really hard to find the issue but I can't think of any : (

  • @studyplanet4656
    @studyplanet4656 3 วันที่ผ่านมา +2

    Bro,
    Recently Open AI launched their new model which can solve codeforces problem rated upto 1600 -1800 with ease , there are a lot of cheaters which will use this for their advantage . But for tier3 person getting a good rank will help in getting referral for off campus placements . People who don't want to cheat focus solely on improving their problem solving and get good ranks which ultimately help in getting referrals , but due to cheating all these rankings will be considered of no use because there might be some people who have cheated to get those ranks . So what should we do . Please have some discussion on it . Will there be any credibility of these ratings in futures or all hardwork will go in vain .

    • @sachinboreoffl
      @sachinboreoffl 3 วันที่ผ่านมา +1

      Cheaters can solve using AI in contests but will struggle in interviews...
      So just Focus on improving ourselves rather than focusing on the rank we get in the contests

    • @anonymousduel7370
      @anonymousduel7370 3 วันที่ผ่านมา

      Then tell your tier 3 groups to stop cheating cause it's not iit nit iiit guys that used to cheat (even if they did numbers were still low)

    • @anonymousduel7370
      @anonymousduel7370 3 วันที่ผ่านมา

      If your sole purpose of cp is landing a job then lets be honest even you would have cheated atleast once in your life in cp.

    • @studyplanet4656
      @studyplanet4656 3 วันที่ผ่านมา

      @@anonymousduel7370 Bro , actually it's not about IIT , NIT or IIIT or any tier 3 college .
      It's more about the credibility of those rankings or ratings . At the end , who will suffer especially the hard working ones .

    • @studyplanet4656
      @studyplanet4656 3 วันที่ผ่านมา

      @@sachinboreoffl Yes you are saying correct .

  • @shreyanshjain1595
    @shreyanshjain1595 3 วันที่ผ่านมา +1

    how is solution to the problem C is getting accepted?
    tc->O(n*m*5*t)==10^11??

    • @gaurishbaliga3723
      @gaurishbaliga3723 3 วันที่ผ่านมา

      The sum of all n * m over all testcases is

    • @Joaquin5992
      @Joaquin5992 วันที่ผ่านมา

      Because of the constraint "The sum of values of n⋅m over all test cases does not exceed 1e6."
      So over all TCs we have Summation(n*m)

  • @mursalinhawlader6407
    @mursalinhawlader6407 3 วันที่ผ่านมา +2

    this teacher ka solution daily chai

  • @mursalinhawlader6407
    @mursalinhawlader6407 3 วันที่ผ่านมา +1

    this teacher ka solution daily chai