i_love_turtles's blog

By i_love_turtles, history, 12 months ago, In English

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!

Full text and comments »

  • Vote: I like it
  • +42
  • Vote: I do not like it

By i_love_turtles, history, 15 months ago, In English

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?

Full text and comments »

  • Vote: I like it
  • -4
  • Vote: I do not like it

By i_love_turtles, 16 months ago, In English

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}$$$?

Full text and comments »

  • Vote: I like it
  • +18
  • Vote: I do not like it