Codeforces Round 964 Solution Discussion | ABCDEFG1G2 | All Problems

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 11

  • @rkninja-pc4ko
    @rkninja-pc4ko Месяц назад +4

    A big thanks for the hard work you are doing by sacrificing your sleep and time to help us learn more🛐

  • @SumanRoy-gu6lc
    @SumanRoy-gu6lc Месяц назад +5

    in problem E, i have another approach to calculate the operation.
    the operation needed for any number is ( log3 n)+1 since we cannot use 3 as base in cpp, so we can write this as ((log2 n)/(log2 3))+1. I guess this is O(1) operation.

    • @devd_rx
      @devd_rx Месяц назад +1

      tried doing this but gave me WA

    • @jayrathod7957
      @jayrathod7957 Месяц назад

      yeah , log is inbuilt fun
      but it doesn't means its O(1)
      it is O(log)
      i tried same then got idea of it

    • @SumanRoy-gu6lc
      @SumanRoy-gu6lc Месяц назад

      @@jayrathod7957 the log function uses hardware-level instructions or highly optimized algorithms to compute the logarithm of a number, making the computation constant time regardless of the input size. I had read this in some article(gfg , stack overflow) and some AI also.

  • @danushbasanaboyina1306
    @danushbasanaboyina1306 Месяц назад +2

    Today I have learnt something new from your upsolve session sir.
    😊😊

  • @user-sp8ne7hj3n
    @user-sp8ne7hj3n Месяц назад

    Great Explanation ❤❤❤❤❤❤

  • @ipsitapatnaik6339
    @ipsitapatnaik6339 Месяц назад

    Can anyone tell me codeforces conduct contest on Wednesday or Tuesday? Also the timing?

    • @aryanc403
      @aryanc403  Месяц назад +1

      clist.by/ or codeforces.com/contests

  • @RiteshKumar-IIT_KGP
    @RiteshKumar-IIT_KGP Месяц назад

    7 Crore🫡

  • @shivanshgoel2504
    @shivanshgoel2504 18 дней назад

    Problem E - > Plz compile this code and told me error this give me TLE ON 2ND TEST CASE
    #include
    #include
    using namespace std;
    int main()
    {
    int n;
    cin >> n;
    vector answr;
    for (int i = 0; i < n; i++)
    {
    int a = 0;
    int b = 0;
    cin >> a;
    cin >> b;
    vector dp(200001, -1);
    vector prefixsum(200001);
    for (int i = a; i