Codechef Starters 139 | Video Solutions - A to D | by Ankit Ghildiyal | TLE Eliminators

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 28. 07. 2024
  • Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D of Codechef Starters 133 (Div 2). The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest.
    📱Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet
    Solution Codes:
    Problem A: pastebin.com/6d0eSp0R
    Problem B: pastebin.com/wm09HmT7
    Problem C: pastebin.com/2GpuKxKP
    Problem D: pastebin.com/T1GLDDrf
    Be sure to check out TLE Eliminators.
    Website: www.tle-eliminators.com/
    Instagram: / tle_eliminators
    Linkedin: / tle-eliminators
    Twitter: / tle_eliminators
    TLE Community Discord Server: / discord
    Timestamps:-
    0:00 Problem A
    14:28 Problem B
    33:09 Problem C
    56:25 Problem D

Komentáƙe • 25

  • @TLE_Eliminators
    @TLE_Eliminators  Pƙed měsĂ­cem

    Please fill the feedback form: forms.gle/wTgYuKAKSp5CsgGK7

  • @pratyushdubey5362
    @pratyushdubey5362 Pƙed měsĂ­cem +17

    It would've been better if you as the educator explained those observations rather than just listening to those students who were able to solve it and write it down on the board and solving the sum again. You just came to solve the questions again on a video call rather than explaining them.Worst editorial from TLE team.

  • @crazymemes4080
    @crazymemes4080 Pƙed měsĂ­cem +18

    I don't know how they explain:) totally waste of time.

  • @kousthubhyadavalli1077
    @kousthubhyadavalli1077 Pƙed měsĂ­cem +12

    can we get the solution code as well?

  • @VivekYadav-uy9ts
    @VivekYadav-uy9ts Pƙed měsĂ­cem +3

    In Problem 'B' in couldn't get this oberservation that it is N / GPF(N), after this i was able to solve it by my own, Thnx for the explanation Ankit Bro!

  • @stuartYoung559
    @stuartYoung559 Pƙed měsĂ­cem

    HEY ! why cp31 sheet is not accessible from website ?

  • @anandraj-xj5ge
    @anandraj-xj5ge Pƙed měsĂ­cem +2

    I tried to fix the frst permutation as 1,2,3,4 then wrote code to find all permutations and then do ai-bi then check is there any pattern. Because writing permutations can become confusing. Is it a good practice or should I change ?

  • @kondekarvaishnavi2348
    @kondekarvaishnavi2348 Pƙed měsĂ­cem +8

    Worst explanation everđŸ˜źâ€đŸ’šđŸ€źđŸ€ź

  • @037_abhinavkumar3
    @037_abhinavkumar3 Pƙed měsĂ­cem

    Explain the questions and logic properly please

  • @Ronakrewar
    @Ronakrewar Pƙed měsĂ­cem

    give code of sum of N

  • @Noob_Coder1234
    @Noob_Coder1234 Pƙed měsĂ­cem +2

    Great Explaination Mr Ankit

  • @professor8628
    @professor8628 Pƙed měsĂ­cem

    why your website is not working??

  • @siddheshpandey7905
    @siddheshpandey7905 Pƙed měsĂ­cem +5

    solution for Sum of N question:
    #include
    using namespace std;
    const long long MAX_LIMIT = 1000000;
    vector sieve(vector &isPm) {
    vector pm;

    isPm[0] = isPm[1] = 1;
    long long sum=0;
    for (long long i = 2; i t;
    vector isPm(MAX_LIMIT + 1, 1);
    vector pr=sieve(isPm);

    while(t--){
    long long k;
    cin>>k;

    if(isPm[k]==1){
    cout

    • @prakashk.pandey9298
      @prakashk.pandey9298 Pƙed měsĂ­cem

      check this:-#include
      using namespace std;
      const int m=1e6+1;
      vector allprime;
      unordered_map mp;
      vector isprime(m+1,0);
      void fun2(){
      vector vis(m,0);
      for(int i=2; i>k;
      if((k%2)==0){
      cout

  • @prakashk.pandey9298
    @prakashk.pandey9298 Pƙed měsĂ­cem

    Solution for sum of N :-
    #include
    using namespace std;
    const int m=1e6+1;
    vector allprime;
    unordered_map mp;
    vector isprime(m+1,0);
    void fun2(){
    vector vis(m,0);
    for(int i=2; i>k;
    if((k%2)==0){
    cout

  • @user-nx9jh6uo2d
    @user-nx9jh6uo2d Pƙed měsĂ­cem +1

    #include
    #define int long long
    using namespace std;
    const int N=1e6+10;
    vectorres;
    vectorisPrime(N,1);
    void solve()
    {
    isPrime[0]=isPrime[1]=false;
    for(int i=2;i>k;
    if(k%2==0)
    {
    cout

    • @prakashk.pandey9298
      @prakashk.pandey9298 Pƙed měsĂ­cem

      check this:-#include
      using namespace std;
      const int m=1e6+1;
      vector allprime;
      unordered_map mp;
      vector isprime(m+1,0);
      void fun2(){
      vector vis(m,0);
      for(int i=2; i>k;
      if((k%2)==0){
      cout

  • @39_jatinjain4
    @39_jatinjain4 Pƙed měsĂ­cem +3

    Worst Explanation!

  • @vanshgupta5202
    @vanshgupta5202 Pƙed měsĂ­cem

    #include
    #include
    using namespace std;
    void primeSieve(int n, vector& ar) {
    vector is_prime(n + 1, true);
    for (int p = 2; p t;
    while (t--) {
    int n;
    cin >> n;
    vector primes;
    primeSieve(n, primes);
    long long int sum = 0;
    for (int p : primes) {
    sum += p;
    if (n % p == 0) {
    break;
    }
    }
    sum *= n;
    cout

  • @shudhanshusingh1401
    @shudhanshusingh1401 Pƙed měsĂ­cem +5

    One of the worst teacher teaching on CZcams