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

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

We will hold AtCoder Beginner Contest 149.

The point values will be 100-200-300-400-500-600.

We are looking forward to your participation!

Update: Due to the troubles in judging, this contest will be unrated. Sorry for the inconvenience.

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

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

Please note the unusual start time. It starts one hour before the usual start time. :)

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

Nice. Now the round is unrated. (First time solved 4 tasks);_;

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

Can anyone clarify what F wants us to do, the language is unclear to me?

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

How to solve E?

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

    It can be solved using FFT, but there is a binary search solution too.

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

    First you could binary search over the minimum value of pair sum such that count of all pairs satisfying this criteria is more than equal to M.To find count of such elements in each binary search check, you could use 2 pointers, one for maximum and the other for minimum and get the total elements satisfying the condition. After binary search we have the minimum pair sum so that total count of all pairs having more or equal sum is at least M. Say this minimum is 'Min'.So for pair sum more than equal to Min + 1, has count less than M.Sum up all such pairs with pair sum more than equal to Min + 1. And for the remaining pairs to make the count = M, we add that Min required number of times to the answer.

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

has anyone wrote dp solution of D??

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

Auto comment: topic has been updated by chokudai (previous revision, new revision, compare).

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

can someone explain the solution of D. I thought it was dp but couldn't figure out the states as i am very very weak in dp. :(

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

How to solve question E? I got wrong .

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

Please explain how to solve F in more details. I'm unable to understand editorial