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

Автор SirodgevAlexander_, история, 3 месяца назад, По-русски

Hello!

I have TLE on 23 test with O(n) (I think so) Z-function. I want to reverse origin string and just use Z-func. Where is the problem?

code below https://gist.github.com/BigTape/2506b276900a6fea04d051bc4062c1f6

[problem:https://codeforces.com/edu/course/2/lesson/3/4/practice/contest/272262/problem/D]

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

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

Автор SirodgevAlexander_, история, 20 месяцев назад, По-русски

1722E - Counting Rectangles 170321518 Hello! Was trying to solve this problem but get stuck. What i do? i create vector pair to contain data. then i sort it. create vector for prefix sum. then i am trying to find frist and last position, where height and widght allowed. then i minus from r position l — 1 position. and it dont work(((

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

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

Автор SirodgevAlexander_, история, 20 месяцев назад, По-русски

Я календарь... переверну

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

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