YetnotherrokenKeoard | Codeforces 1907B Solution | Codeforces Round 913 (Div. 3) | English

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

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

  • @luongvinh5930
    @luongvinh5930 6 หลายเดือนก่อน

    nice job man, congrats from VN

  • @SushilBang-u9q
    @SushilBang-u9q 9 หลายเดือนก่อน

    thank you

  • @arnavkaul7827
    @arnavkaul7827 10 หลายเดือนก่อน

    Thank you so much,As a beginner i tried out an approach with vectors but I couldnt get close

    • @cskakeeda12
      @cskakeeda12 10 หลายเดือนก่อน

      sir tle aa rha test case 3 pr int value lene pr

    • @codingdynamo
      @codingdynamo  10 หลายเดือนก่อน

      @@cskakeeda12 I don't think int value would be an issue. You can share your submission to help you.

    • @cskakeeda12
      @cskakeeda12 10 หลายเดือนก่อน +1

      @@codingdynamo
      #include
      using namespace std;
      int main(){
      int t;
      cin>>t;
      while(t--){
      mapm;
      string s;
      cin>>s;
      stackupper,lower;
      for(int i=0;i

    • @codingdynamo
      @codingdynamo  10 หลายเดือนก่อน

      @@cskakeeda12 It's working codeforces.com/contest/1907/submission/237574208
      Maybe you can share your submission link, this might be an accepted code.

  • @saumilaggarwal5233
    @saumilaggarwal5233 10 หลายเดือนก่อน

    there was no need to use map, insteadu could have canges directly to the input string and then do conditional traversal of it

    • @codingdynamo
      @codingdynamo  10 หลายเดือนก่อน

      Yes, that's the best approach 😃👍

    • @TheAI-Tutor
      @TheAI-Tutor 10 หลายเดือนก่อน

      didnt get it :( can you explain?

    • @codingdynamo
      @codingdynamo  10 หลายเดือนก่อน

      @@TheAI-Tutor Instead of map, we directly change the source string, and whenever 'b' or 'B' comes we change the string char that we get from stack to $. So that while output, we won't print those, assuming we have removed those chars.
      I rewrote the code: codeforces.com/contest/1907/submission/237917386
      You can check this submission. And trace through it. You will understand.

  • @1braincellremaining165
    @1braincellremaining165 10 หลายเดือนก่อน +1

    upload C please

    • @codingdynamo
      @codingdynamo  10 หลายเดือนก่อน

      Here you go, th-cam.com/video/ZfXD0lC5oXA/w-d-xo.html :)

  • @yourdudecodes
    @yourdudecodes 9 หลายเดือนก่อน

    #include
    using namespace std;
    #include
    int main()
    {
    int test {};
    cin >> test;
    for(int r=0; r> inputstring;
    char * newstring = new char[inputstring.length()];
    int indexnew = 0;
    for(int i =0; i=0; j--)
    {
    if(int(newstring[j])>=65 && int(newstring[j])=0; j--)
    {
    if(int(newstring[j])>=97 && int(newstring[j])