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

Автор Francisco_Martin, 4 недели назад, По-английски

2274A - The Projections of Paco
Idea by: efishel
Prepared by: efishel

Solution

2274B - Prefix
Idea by: efishel, jampm
Prepared by: efishel

Solution

2273A - Lavencia Oranges
Idea by: jampm
Prepared by: SopaconK

Solution

2273B - Robot Championship
Idea by: jampm
Prepared by: Francisco_Martin

Solution

2273C - Matrix Puzzle
Idea by: jampm
Prepared by: Remgagagali727

Solution

2273D - Aura Battle
Idea by: Teto, jampm, Francisco_Martin
Prepared by: Teto

Solution

2273E - Six-Seven Bags
Idea by: jampm, Francisco_Martin
Prepared by: Francisco_Martin

Solution

2273F - Pancho's Permutation
Idea by: Marckess, errorgorn, jampm
Prepared by: Marckess

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

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

thanks for your fast editorial!!!

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

so fast

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

For Matrix Puzzle, the matrix is $$$n\times n$$$, there is no $$$m$$$

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

Can B be solved using DP?

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

The time complexity calculation in the editorial of F can't be correct since it doesn't involve input size, while reading the input is already O(input size). The coefficient that appears at $$$n$$$ is an important part of implementation choices since it can bottleneck running time for the given constraints!

Just for fun, I decided to use Python and managed to barely squeeze in a $$$O(m^2 \sum n + t m^4)$$$ solution, heavily relying on PyPy's compilation of nice loops to bring the constant down. It was still a pain because $$$O(m^2 \sum n)$$$ is horrible, de facto brute force recomputation of the vast majority of data. I believe that component of complexity could be brought down to $$$O(\sum n)$$$ with efficient updates...

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

fucking what a great problem $$$D$$$

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

Hello again, Codeforces community! After some thought, and after not being able to understand the editorial for Div 1B/2D (Robot championship), I have come up with this following solution:

https://codeforces.me/contest/2273/submission/397045971

I have included a semi-formal analysis of the problem in my comments, in hopes of making the solution easier to understand for other people. Please check it out if you are interested, and you can reply to this comment if you have any doubts.Thank you!