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

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

How do I apply the codeforces background coding theme (image below) for VS code? I find CF's theme is pretty contrast, noticable, and somehow beautiful :). Thanks!

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

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

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

My friend is a delivery man and he asked me to help him find the shortest and most economical way for him to deliver all the goods.

What could I do to be a good friend xD?

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

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

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

Hi guys. Recently, i have been thinking about a new problem but I can't even come up the solution myself LOL. Any ideas to solve this? (Sorry for my poor English btw)

Statement:

Given an array a consists of N integers (-1e6 <= a[i] <= 1e6). You have to answer Q queries, each of them you are given:

t L R k

  • If t = 1, return to sum of k largest numbers in range [L, R]
  • If t = 2, return to sum of k smallest numbers in range [L, R]

Given that both N and Q are smaller than $$$10 ^ {5}$$$. How do we suppose to solve this problem? Is it solvable if the constraints of N, Q up to 2.$$$10 ^ {5}$$$?

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

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