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

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

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

We will hold Japan Registry Services (JPRS) Programming Contest 2024#2 (AtCoder Beginner Contest 364).

We are looking forward to your participation!

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

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

Fun fact: 1115449 is a prime number!

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

ACAM in ABC362, then Steiner tree in this round?????? Will ABC365 have a poly multipoint eval as G?????????

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

    imo specific case of NP-Hard problem isn't bad. Or have this G appeared before?

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

      Yes, there is a similar (template) problem on luogu. Someone passed it in 2 min and they probably copied their code.

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

Scream if you love dynamic programming

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

It is not a good habit to present old questions in new competitions.

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

Problem G coincides with a problem from BOI 2016 (link), so it wasn't hard to copy-paste my previous code :)

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

    Last ABC, problem G was a blatant template for ACAM and now it's just a blatant copy of another problem? atcoder_official, if you can't set Gs, then don't. It's better to have a contest with 6 problems than blatantly copying another problem.

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

    In the BOI problem, you are given all $$$k$$$ important cities upfront. Additionally, the constraints on $$$n, m, k$$$ differ substantially. Of course, solving the BOI problem makes it easier to solve G, but it's not an exact copy. I think it's perfectly fine to have this level of similarity. For example, a friend pointed out that I solved 152E - Garden, a problem from 2012 with a similar solution. I could copy-paste parts of my code had I remembered that problem, but I didn't. If you still remember an old problem and realize that the current one is similar then you deserve to have an easier time solving it.

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

what is the problem with this solution for e?

https://atcoder.jp/contests/abc364/submissions/56054692

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

Can someone, please, tell, how can I link my cf Id to my AtCoder account?

UPD: I got the answer

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

can someone explain me why this submission to E didn't pass?

https://atcoder.jp/contests/abc364/submissions/56063726

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

my solution for E got passed but ideally it should give Runtime error can anyone tell me why

https://atcoder.jp/contests/abc364/submissions/56052731

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

Why the problem E and C were almost same, but their input style was different ?

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

    If you read through the problems you'll find that although C and E have similar themes of eating, C is greedy whereas E is DP. It's two completely different problems, and I think both were good problems.

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

      I think they meant the formatting of the input themselves are different. One was all A then all Bs, the other being pair of A,B. I didn't notice this during the contest and somehow passed all samples.

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

hey why GREEDY doesnt work in E but for c it works only differ is max and min so why ? also ,

How maintaining minimum total saltiness when choosing exactly k dishes solves the problem.

Basically, how to transform from O(NXY) to O(N^2Y)

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

    I don't know if this dp technique has a name, but it's pretty well-known.

    Let's say we have a dp where $$$dp[i] = x$$$, which means that the optimal value at state $$$i$$$ is $$$x$$$. This is not solvable this way when $$$i$$$ is very large.

    If $$$i$$$ is very large and $$$x$$$ has a reasonable limit, say, $$$1\leq i\leq 10^9$$$ and $$$1\leq x\leq 10^5$$$, one way to go about it is to swap the dp state and the result. So the new dp would be $$$dp[x] = i$$$, denoting that optimal value $$$x$$$ is possible using state $$$i$$$.

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

Can someone Please tell why this Solution of E is giving WA. I have thought it for hours but unable to figure it out. https://atcoder.jp/contests/abc364/submissions/56048006

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

any recursive/memo (dp) solution for E

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

My F's solution is failing on 3 testcases, can someone help me understand why?

My Idea — instead of connecting l--i+n,l+1--i+n...r--i+n, connect l to i+n then connect l--l+1, l+1--l+2, l+2--l+3... I maintain minimum and maximum index a node is connecting to skip iterating from l to r, and just jump certain number of nodes.

Link to submission