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

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

question here is my_solution

My approach I have replaced vertices given in query with their immediate parent and then checked if the nodes in the sequence are child of each other....
My code has failed on 100th testcase that's only I am asking for help

Полный текст и комментарии »

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

Автор ronaldocr7, история, 5 лет назад, По-английски
  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится

Автор ronaldocr7, история, 5 лет назад, По-английски

contest :-- https://codeforces.com/contest/1174 question 2nd link :-- https://codeforces.com/contest/1174/problem/B

I have the same logic like various other contestants have used but I got TLE on test case number 63 as i had used JAVA whereas others have used C++. this is a very disappointing for me and i am not getting the logic behind this. Everyone knows that JAVA is bit slow than C++ but this is not acceptable that u change your logic or thinking process on this fact My submitted cod is 55027519: please anyone explain me why this happened;

Полный текст и комментарии »

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