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

Автор Me_iS_NooB, история, 21 месяц назад, По-английски

i was trying to solve this problem:- https://codeforces.me/contest/2064/problem/D

My solution :- https://codeforces.me/contest/2064/submission/307112876

I am getting wrong ans verdict in my solution even tho i think my logic is correct. Can anyone please find and explain what did i do wrong?

plzz help :,(

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

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

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

i was trying to solve this problem:- https://codeforces.me/contest/1801/problem/B

My solution :- https://codeforces.me/contest/1801/submission/278323418

In my solution i wrote a O(nlogn) solution and the judge is showing time limit exceeded. But in editorial the solution given is O(nlogn) and that is getting passed. I am having trouble understanding how this is happening.

plzz help :,(

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

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