Codeforces Round 898 | Video Solutions - A to H | by Raghav Goel | TLE Eliminators

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

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

  • @TLE_Eliminators
    @TLE_Eliminators  Год назад +3

    Please fill out the feedback form for today's PCD: forms.gle/HQ8PXj1QqLTPgLjY6

  • @dhwanilvaidya9635
    @dhwanilvaidya9635 5 месяцев назад +1

    explaination for H was very intuitive !!

  • @KattamuriKowshiq1589
    @KattamuriKowshiq1589 Год назад +6

    Thank you for the explanations. What is the notepad you use for writing?

    • @itzzRaghav
      @itzzRaghav Год назад +3

      Huion Pen tab, I don't remember the model number, it has X in its name and the number was 510 I guess

    • @kowshiqkattamuri8977
      @kowshiqkattamuri8977 Год назад +1

      @@itzzRaghav I mean to ask about the note pad not the graphic tablet. Like do you use Microsoft note or something else?

    • @itzzRaghav
      @itzzRaghav Год назад +1

      @@kowshiqkattamuri8977 Ya it is Microsoft's OneNote free version

    • @kowshiqkattamuri8977
      @kowshiqkattamuri8977 Год назад +1

      @@itzzRaghav ok thanks

  • @kaushiksen2190
    @kaushiksen2190 Год назад

    Thanks for the video

  • @adityaaggarwal3535
    @adityaaggarwal3535 Год назад

    #include
    using namespace std;
    int main()
    {
    int t;
    cin >> t;
    int y = t;
    while (t--)
    {
    int cnt1 = 0;
    int cnt2 = 0;
    string s;
    cin >> s;
    string r = s;
    int n = s.length();
    for (int i = n - 1; i >= 0; i--)
    {
    if (s[i] == 'B')
    {
    if (i >= 1 && s[i - 1] == 'A')
    {
    cnt1++;
    s[i] = 'C';
    s[i - 1] = 'B';
    }
    }
    }
    for (int i = 0; i < n; i++)
    {
    if (s[i] == 'B')
    {
    if (i = 1 && r[i - 1] == 'A')
    {
    cnt2++;
    r[i] = 'C';
    r[i - 1] = 'B';
    }
    }
    }
    cout