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

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

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

We are looking forward to your participation!

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

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

Fun fact: 1115449 is a prime number!

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

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

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

Scream if you love dynamic programming

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

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

  • »
    »
    2 года назад, скрыть # ^ |
     
    Проголосовать: нравится 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.

  • »
    »
    2 года назад, скрыть # ^ |
     
    Проголосовать: нравится +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.

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

what is the problem with this solution for e?

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

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

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

UPD: I got the answer

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

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

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

»
2 года назад, скрыть # |
 
Проголосовать: нравится 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

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

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

»
2 года назад, скрыть # |
 
Проголосовать: нравится 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)

  • »
    »
    2 года назад, скрыть # ^ |
     
    Проголосовать: нравится 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$$$.

»
2 года назад, скрыть # |
 
Проголосовать: нравится 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

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

any recursive/memo (dp) solution for E

»
2 года назад, скрыть # |
 
Проголосовать: нравится 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