7

AtCoder Beginner Contest 265 Announcement

 2 years ago
source link: http://codeforces.com/blog/entry/106199
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

We will hold AtCoder Beginner Contest 265.

The point values will be 100-200-300-400-500-500-600-600.

We are looking forward to your participation!

17 hours ago, # |

Rev. 4  

+3

Great Contest! enjoyed it... Finally I can now become Cyan on atcoder as well :P

UPD: Became Cyan (1200+) :P

Now I can participate in AGCs as well.

  • 17 hours ago, # ^ |

    have u done E i wrote dfs then tried memoizing it using map but haven't succeeded from tle

    • 17 hours ago, # ^ |

      Yes, I solved E with DP. you may see my submission.

      • 17 hours ago, # ^ |

        submission can u plz tell some optimization in this one btw thnx i will try using your approach

      • 17 hours ago, # ^ |

        LOL. My approach is exactly same. Submission

17 hours ago, # |

pls name tasks next time like DP1, DP2, and so on

  • 17 hours ago, # ^ |

    Agree. XD

    Btw can you tell me how to solve F if you solved?

    • 17 hours ago, # ^ |

      DP[i][d1][d2] = count of prefixes with d1 <= D and d2 <= D

      you can go from DP[i][d1][d2] to DP[i+1][d1 + |x — pi][d2 + |x — qi|]

      last part is prefix sums for fast transform

      • 17 hours ago, # ^ |

        Since time limit is 6 second it actually works also without any prefix sums.

        • 17 hours ago, # ^ |

          hmm, I added it because of tle with O(nD2×1000)O(nD2×1000)

        • 15 hours ago, # ^ |

          Your code fails after_contest tests

          • 15 hours ago, # ^ |

            Yes, I saw that. Guess it my lucky day ;)

17 hours ago, # |

Rev. 3  

0

Did any other person get 2020 AC and 11 TLE in GG?

  • 28 minutes ago, # ^ |

    I did by applying brute force.

17 hours ago, # |

Nice contest again, thanks.

But text of B was not optimal. The "time limit" is actually not a time limit, but the remaining time. Usually if we need x time units to do a step, and remaining time is x, then it is ok to do the step. But here it was not, we needed timelimit=x+1. I needed 4 submission to understand.

17 hours ago, # |

New to atcoder, Apologies if its previously answered. Is there anyway we can see the testcase on which our code is failing?

    • 17 hours ago, # ^ |

      Thank you, how much time does it take for a contest TCs to appear there?

      • 16 hours ago, # ^ |

        From the current available test-cases, it's probably 2 to 3 weeks.

16 hours ago, # |

We realized tests of F are weak. (The code that generated tests contained a bug.) We added some tests like 99_after_contest_01.txt.

15 hours ago, # |

Let’s get back to the original problem. This case, the possible values of (x,y) is relatively small, so we can solve it in a total of O(N3(logN+logM))O(N3(logN+logM)) time by storing the DP table in a dictionary. If you use a fast language, your code will be accepted.

Can someone explain why the possible values of (x, y) are relatively small in problem E??

  • 15 hours ago, # ^ |

    Rev. 2  

    +3

    While contest I assumed, since in each step we can make one of three choices, we can reach up to 3n3n points.

    But that is misleading, since there are only 3 kinds of steps, and order of the single steps does not matter, it is less than n3n3 different points possible.

    They can be described by dp[x][y][z] where x+y+z≤nx+y+z≤n

    • 13 hours ago, # ^ |

      But that is misleading, since there are only 3 kinds of steps, and order of the single steps does not matter, it is less than n3n3 different points possible.

      Can you explain this statement again? Thanks in advance.

    • 23 minutes ago, # ^ |

      hey, I tried E. wrap here is my code


      class solution{ public: ll a,b,c,d,e,f,n,m; void solve(){ cin>>n>>m; cin>>a>>b>>c>>d>>e>>f; vector<map< pair<ll,ll>, ll>> dp(n+1); set<pair<ll,ll>> st; forn(i,0,m){ ll x,y; cin>>x>>y; st.insert({x,y}); } cout<<rec(0,0,0,dp,st)<<endl; } ll rec(ll x, ll y, ll steps, vector<map< pair<ll,ll>, ll>> &dp, set<pair<ll,ll>> &st){ if(st.find({x,y})!=st.end()){ return 0; } //cout<<x<<" "<<y<<endl; if(steps==n){ return 1; } if(dp[steps].find({x,y})!=dp[steps].end()){ return dp[steps][{x,y}]; } return dp[steps][{x,y}]=(rec(x+a,y+b,steps+1,dp,st) + rec(x+c,y+d,steps+1,dp,st) + rec(x+e,y+f,steps+1,dp,st))%998244353; } };

      cannot figure out why it would give me TLE on some cases, can you please tell me what am i missing to optimize?

14 hours ago, # |

I think it was my first time solving G in the new ABC format, really happy about that, no longer stuck between 1600 and 1700. and interesting problems overall.

31 minute(s) ago, # |

There is an error in the problem statement for Ex (No-capture Lance Game)

It says "The first player can move the piece at (1,7) to (1,4), (1,5), or (1,6); the second player can move the piece at (3,4) to (3,1), (3,2), or (3,3). The first player cannot move the piece at (2,1).", but the piece at (3,4)(3,4) belongs to the first player.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK