Блог пользователя tishrah

Автор tishrah, история, 3 года назад, По-английски

Simply printing System.out.println("Karen"); passes all the test case of this question.

Is there any logic behind it or it was simply my luck and a mere coincidence ?????

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Your streak is awesome but you should try practicing problems of higher difficulty, because the percentage of problems you have solved with rating >= 1200 is just 10 percent of your total solved problems and that's really low. I hope you would find this advice helpful.

Have a look at the level of the problems you have solved here.

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    one gray guy teaching another gray guy OK

    • »
      »
      »
      3 года назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      You can correct me if I said something wrong. The advice of solving problems higher than your current rating is not my advice it's what I have learnt from red coders like errichto etc. Also I said something which is quite obvious and is correct even if a gray says it, idk where you get that logic that if gray says something about cp that makes it invalid or less worthy to consider.

      • »
        »
        »
        »
        3 года назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        it's less worth just because u don't have enough experience. I have a question: if ur advice is good why are u still gray? now the author says that's ok giving advice but to me it looks like someone ask a question about task and another man with no reason starts to giving advice)

»
3 года назад, # |
Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

I think it because if $$$a$$$ $$$xor$$$ $$$b$$$ == $$$c$$$ it means that $$$a$$$ $$$xor$$$ $$$c$$$ = $$$b$$$, so if you found indexes $$$i$$$ and $$$j$$$ and $$$a_i$$$ $$$xor$$$ $$$b_j$$$ $$$=$$$ (number in second array), you can choose this number and get $$$a_i$$$ $$$xor$$$ (this number) = $$$b_j$$$. If this number in first array, you can choose (this number) $$$xor$$$ $$$b_j$$$ = $$$a_i$$$. So if you found pair you can also find another pair.