chrome's blog

By chrome, 10 years ago, translation, In English

Hi there!

Tomorrow at 04:00 MSK will be held Topcoder SRM 657.

Let's discuss problems after contest.

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

»
10 years ago, # |
  Vote: I like it +11 Vote: I do not like it

It looks like kutengine read the div1 250 statement and coded it in just seconds, submitting for 249.92 points. Impressive!

  • »
    »
    10 years ago, # ^ |
      Vote: I like it +27 Vote: I do not like it

    He and KUTcoder (who solved 500 under 3 minutes) have been banned. Good job, TC staff!

  • »
    »
    10 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Now this is much closer but what do people think of Dshawn's submission in 1 minute 18 seconds? Looking at this code it seems hard to imagine that one could read the problem statement that fast and code the check function he has in so little time. But he is not banned so I guess unlike kutengine the topcoder admins think this is legit.

»
10 years ago, # |
Rev. 2   Vote: I like it +21 Vote: I do not like it

Hi, can someone explain div 1 500 approach? thnx

  • »
    »
    10 years ago, # ^ |
      Vote: I like it +15 Vote: I do not like it

    Let answer is 2a2·3a3·... (Notice that we should consider only primes  ≤ 104) So we have to find ap for each p. Let α is maximal number such that pα ≤ n (linear multipliers will never be divided by bigger powers of p). Let's fix x modulo pα. Now for every multiplier (x - a) we can calc maximal r such that pr divides (x - a) for current x. Then we should find minimal sum of r-s among all possible values of x modulo pα. That approach is O(n3).

    But it is easy to see that pr divides (x - a) only if x = a modulo pr. So, we can enumerate r and find d[r][i] — sum of powers (from the problem) of multipliers divisible by pr with x = i. And finaly for every f(k) = d[0][k / pα - 1] + ... + d[α - 1][k]}. Min of f(k) is ap.

»
10 years ago, # |
  Vote: I like it +35 Vote: I do not like it

Lol, we couldn't enter rooms within 5 mins before start, so I deduced tht round is delayed. Moreover people were spamming chat with "delay!!!" messages, so I was convinced about it and so I returned to watching funny videos on YouTube. Few minutes later I returned and saw "Coding phase started" and learnt that I was 2-3 mins late -_-... What is more funny, I heavily struggled with hard and make it pass samples 25 secs before the end. And it passed systests :D! I thought that those lost 2-3 mins could be crucial for me, but it ended happily :).

»
10 years ago, # |
  Vote: I like it +8 Vote: I do not like it

Can someone please explain how to solve div2500 without greedy approach? binary search the answer maybe?

  • »
    »
    10 years ago, # ^ |
      Vote: I like it +9 Vote: I do not like it

    Here's how to binary search.

    Suppose we want to check if we can make x rounds. Now, we already have E easy problems, so we need max(0,x-E) more easy problems. This can only come from easy/med problems. Similarly, we already have H hard problems, so we need max(0,x-H) more hard problems. This can only come from the med/hard problems.

    So, we check EM >= max(0,x-E) and HM >= max(0,x-H). Now, we put everything else for the medium, so we also check that EM-max(0,x-E) + HM-max(0,x-H) + M >= x.

»
10 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

any help with Div2 1000

EDIT: never mind it is already posted in TopCoder forums, thanks.