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

Автор atcoder_official, история, 3 года назад, По-английски

We will hold Panasonic Programming Contest 2023(AtCoder Beginner Contest 326).

We are looking forward to your participation!

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

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

Hopefully constructive feedback. F would be better as a Yes/No question.

I "solved" the main part but implementation was really hard. Link

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

How to solve D ?

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

Trash D!

How to solve $$$E$$$ anyone?

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

In the editorial of problem D, it says

In fact, even when N=5, there are only 66240 grids such that each row and column contains exactly one A, B, and C.

Can someone explain the math behind it?

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

I suddenly have a cracy idea. If today's problem F's Constraints Change to:

$$$1 \le N \le 10^3$$$

$$$1 \le A_i \le 10^7$$$

$$$-10^9 \le X, Y \le 10^9$$$

How do you solve this?

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

Thank you for the problems! I saw F and immediately thought "Isn't this NP Hard?" before realizing, hehe. Could not solve G, but it was educational (I keep overlooking Min-Cut Max-Flow Theorem, I need to practice more.)

(Orz butsurizuki)

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

I want to know if my understanding of problem D is correct. Here is my submission during the contest https://atcoder.jp/contests/abc326/submissions/47026369

But it got WA on sample testcase #1. It output:

Yes
AC..B
BAC..
CB.A.
..ABC
..BCA

I do not know why it got Wrong. Please help me. :(

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

Is there a constructive solution to problem D that doesn't rely on permuting through all $$$20^5$$$ grids? Or preferably avoiding anything exponential?

I can only think of maintaining $$$dp[\text{row number}][\text{non-empty column mask}] = \text{possible (1) or not (0)}$$$ to allow computing answers row by row and then trying all possible combinations for a row in $$$O(n ^ 3)$$$. But this is still pretty slow at $$$O(n^4 \cdot 2^n)$$$ and is practically still an optimized brute force.

Is there any clean constructive approach that solves this a faster complexity?

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

Yo guys, is there way to see the hidden test cases for this contest?

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

From whic topic F belongs?

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

F is pretty straightforward given that you read the problem statement carefully. I misread and thought that the rotations are optional at each step.