WorldWarV's blog

By WorldWarV, history, 97 minutes ago, In English

Thanks for participating in Codeforces Round 1122 (Div. 3)!

Rate the contest!

2266A - Good Contest

Hint
Solution
Code (C++)
Rate the problem!

2266B - Three Piles

Hint 1
Hint 2
Solution
Code (C++)
Rate the problem!

2266C - AND, OR, Sort!

Hint 1
Hint 2
Solution
Code (C++)
Rate the problem!

2266D - Falling Concrete

Hint 1
Hint 2
Solution
Code (C++)
Rate the problem!

2266E - Prime Destruction

Hint
Solution
Bonus
Code (C++)
Rate the problem!

2266F - MEX Replacement

Hint 1
Hint 2
Hint 3
Solution
Bonus
Bonus Answer
Code (C++)
Rate the problem!

2266G - Modular Tree

Hint 1
Hint 2
Hint 3
Solution
Code (C++)
Rate the problem!

2266H - Deque Malfunction

Hint 1
Hint 2
Hint 3
Hint 4
Solution
Implementation 1: Lazy Segment Tree
Code (Lazy Segment Tree)
Implementation 2: Amortized Set Deletion
Code (Amortized Set Deletion)
Rate the problem!
  • Vote: I like it
  • +6
  • Vote: I do not like it

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

Update the announcement :3

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

all the code sections are empty. are you waiting until after the hacking, or is this a mistake?

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

Sigma round, loved so much. But not C >:(

»
59 minutes ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

For H, instead of a segtree, we can use a BIT for easier implementation: https://codeforces.me/contest/2266/submission/391534225 Finding maximum over (t,m] is the same as finding maximum on (0,m-t]

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

had a ton of fun solving F :D, my bound for the binary search was [0,n+60] which makes it a bit easier to implement than having it bound by mx, and it's pretty easy to prove. was scared I didn't handle the overflow well but I guess it was just 1 if lol

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

I can’t remember the last time a Div 3 contest rekt me this hard.
After looking at the editorial, I actually like this contest.

Also, my post contest discussion stream here. ABCEDFG is the order.

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

D and E had me STRESSED. Glad I succeeded in solving them, and props to you WorldWarV for this contest! The problems I managed to solve had very elegant solutions, which I appreciate.