AtCoder Beginner Contest 265 Announcement
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.
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!
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. |
-
have u done E i wrote dfs then tried memoizing it using map but haven't succeeded from tle
-
Yes, I solved E with DP. you may see my submission.
-
submission can u plz tell some optimization in this one btw thnx i will try using your approach
-
LOL. My approach is exactly same. Submission
-
-
17 hours ago, # | pls name tasks next time like DP1, DP2, and so on |
-
Agree. XD
Btw can you tell me how to solve F if you solved?
-
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
-
Did any other person get 2020 AC and 11 TLE in GG? |
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? |
16 hours ago, # | We realized tests of F are weak. (The code that generated tests contained a bug.) We added some tests like |
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?? |
-
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
-
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. |
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK