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

Автор adurysk, история, 10 лет назад, По-английски

Hello Everyone,

I would like to invite you to the mirror contest of official ACM-ICPC Asia-Kolkata Onsite regionals. The contest will start after one hour to the real contest at 11:00 hrs, IST tomorrow (sorry for the very short notice). There are some interesting sets of problems, hope you enjoy cracking them.

Please find details of the contest below:

  • Contest link: https://www.codechef.com/KOL15MOS
  • Start time and date: 11:00 hrs, IST
  • Registration: This is a team contest, so you need to register your team here to take part in it.
  • Note: Please login with your team handle to take make submissions to the problems in the contest.

See you all competing!

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

»
10 лет назад, скрыть # |
 
Проголосовать: нравится +44 Проголосовать: не нравится

Standings of Amritapuri Onsite Mirror are still frozen, at the same time Kolkata Onsite Mirror standings weren't frozen at all :)

Comparing to Amritapuri regionals — this problemset looks more balanced&ICPC-style.

BTW, today I was receiving strange message You are not allowed to check this content. multiple times (F5 helps fine though); there was no such issue before.

»
10 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
  • »
    »
    10 лет назад, скрыть # ^ |
    Rev. 5  
    Проголосовать: нравится +9 Проголосовать: не нравится

    I tried this problem when the contest was about to end, so couldn't implement the approach I had but I think it should work. Total complexity is O(N*k+NlogN) per test case.

    First, sort the array. Let x1, x2, x3, ... xN be the sorted array. Then we have to find twice of the following sum:

    Use binomial expansion to get:

    Precompute the binomial coefficients and also the prefix sums $\sum_{i=1}^p x_i^r$ for all r between 0 and k. Once this is done, you can compute each of the k double sums in linear time. Therefore, final complexity is O(N*k+NlogN).

    Hope this helps. :)

»
10 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

How to solve the Antichains problem?

https://www.codechef.com/KOL15MOS/problems/KOL1508

I think the largest antichain is the one consisting of all prime numbers or power of a respective prime number but I am not sure if this is correct.

Thanks!

»
10 лет назад, скрыть # |
 
Проголосовать: нравится +13 Проголосовать: не нравится

when will problems be added to practice?

»
10 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How do you solve the Christmas Cookies problem?