Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Автор tourist, 20 месяцев назад, перевод, По-русски

1782A - Ноутбук и проектор

Explanation
Source

1782B - Поход в кинотеатр

Explanation
Source 1
Source 2

1782C - Равные частоты

Explanation
Source

1782D - Много точных квадратов

Explanation
Source

1782E - Сжатие прямоугольников

Explanation
Source

1782F - Вставка скобок

Explanation
Source

1782G - Разнообразная раскраска

Explanation
Source (2nd approach)

1782H1 - Оконные сигналы (простая версия)

Explanation
Source for easy version
Source for hard version
  • Проголосовать: нравится
  • +253
  • Проголосовать: не нравится

»
20 месяцев назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

Nice

Editorial is here)

»
20 месяцев назад, # |
Rev. 2   Проголосовать: нравится +34 Проголосовать: не нравится

omg tourist Editorial

»
20 месяцев назад, # |
Rev. 2   Проголосовать: нравится +8 Проголосовать: не нравится

A simple solution to problem E:

The solution for height = 1 is trivial. I'll discuss about a similar solution for height = 2.

Step 1 : Solve the trivial problem for the rectangle covers both rows only.

Step 2 : Let's detach the rectangles we chose in step 1 into 2 rectangles in the first and second row.

Step 3 : Solve the trivial problem for each rows.

Step 4 : Merge the rectangle in step 2.

Caution: for the rectangles created in step 2, you can only remove or keep them without shrinking.

My submission: 189882008

»
20 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Why are there so few upvotes on this blog?

»
20 месяцев назад, # |
Rev. 2   Проголосовать: нравится +6 Проголосовать: не нравится

I would recommend replacing "Source" with "(Source) Code", at first glance I thought it was the inspiration or the source of the problem :D

»
20 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

what is the fast factorization method in in problem D.

  • »
    »
    20 месяцев назад, # ^ |
      Проголосовать: нравится +1 Проголосовать: не нравится

    Check all numbers n where n*n<=p and n>=1 where p is the number you want to factor. The factors will always be when p%n==0 and the factors themselves will be n and p/n. This works because when we check all numbers less than or equal to sqrt of p, the following pair(p/n) will get all the numbers greater than or equal to sqrt of p.

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

      This is the general factorization I thought there is faster factorization method possible for this. By the way how to optimize the second part of the problem.

»
20 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can anyone please explain C a little bit detailed

»
9 месяцев назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

can anyone give hint on how to solve the bonus task of problem $$$D$$$ given in the editorial?

»
4 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

loved your approach @tourist everytime.