kondasujay2's blog

By kondasujay2, history, 3 hours ago, In English

Thank you to everyone who participated!

We are sorry for the poor testcases on C1, along with C1 and C2's solutions being so similar to the recent Div3 E.

2263A - Min Max Game

Author: kondasujay2

Tutorial
Solution
Rate the problem

2263B - Min Matrices

Author: sukon

Tutorial
Solution
Rate the problem

2263C1 - Floor of MEX (Easy Version) / 2262A1 - Floor of MEX (Easy Version)

Author: CutSandstone

Tutorial
Solution
Rate the problem

2263C2 - Floor of MEX (Hard Version) / 2262A2 - Floor of MEX (Hard Version)

Author: kondasujay2

Tutorial
Solution
Rate the problem

2263D - Culling Game / 2262B - Culling Game

Author: kondasujay2

Tutorial
Solution
Rate the problem

2263E - Traveling the World / 2262C - Traveling the World

Author: kondasujay2

Tutorial
Solution
Rate the problem

2263F - PLUSworld / 2262D - PLUSworld

Authors: sukon & kondasujay2

Tutorial
Solution
Magic
Magic Solution
Rate the problem

2262E - Paired Bracket Sequences

Author: kondasujay2

Tutorial
Solution
Rate the problem

2262F - Rank Removal

Authors: sukon & kondasujay2

Tutorial
Solution
Tester Solution
Spoiler
Rate the problem
  • Vote: I like it
  • +16
  • Vote: I do not like it

»
72 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by kondasujay2 (previous revision, new revision, compare).

»
49 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by sukon (previous revision, new revision, compare).

»
31 minute(s) ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Nice Contest

»
19 minutes ago, hide # |
Rev. 2  
Vote: I like it +1 Vote: I do not like it

Div1A2/Div2C2 can be solved in $$$O(n\log n)$$$ via counting sort if you store the smallest interval for each right endpoint.

»
12 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

For C2, my submission: 390474676. It works in O(nlogn) time comp. and O(n) space comp.

My DP: I have processed till i (0 <= i < n), and I want to find how many good sets exist with the largest element being i. Note till now, we are not considering intervals whose right endpoint is bigger that i.

For transition, I will be summing up the dp[j] such that j < i, j represents what is the second largest element of the set, and there is no interval completely inside [j + 1, i — 1]. j will form a contiguous range, so we can use prefix sum on dp values.

Thus, dp calc. part is O(n), but preprocessing intervals take O(nlogn) time.

Final answer: let pos represents the maximum left endpoint of any interval in which at least one number should lie. ans = dp[pos] + dp[pos + 1] + ... + dp[n — 1].

»
11 minutes ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

"Rate the problem" appears to have all the problems sharing the same rating votes