KluydQ's blog

By KluydQ, history, 3 hours ago, translation, In English

Thanks a lot for participating!

2267A - Turn Into a Palindrome

Solution
Implementation
Did you like the problem?

2267B - Fashionable Array

Solution
Implementation
Did you like the problem?

2267C - GCD Treasury

Solution
Implementation
Did you like the problem?

2267D - Backrooms Hill

Solution
Implementation
Did you like the problem?

2267E - Clean Substrings

Solution
Implementation
Did you like the problem?

2267F1 - XOR Transformations (Easy Version)

Solution
Implementation
Did you like the problem?

2267F2 - XOR Transformations (Hard Version)

Solution
Implementation
Did you like the problem?

2267G - New LRT

Solution
Implementation
Did you like the problem?
  • Vote: I like it
  • +12
  • Vote: I do not like it

»
3 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

»
3 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

ORZ round. But in my opinion, C is harder than D.

  • »
    »
    3 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Same, didn't even prove my approach for C, just went ahead with intuition.

»
3 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Was able to do A and B

»
3 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i should have worked on D instead of C...

»
3 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

F1 let me know that brute force is sometimes the solution

»
2 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

you didn't link the editorial in the original blog post

»
2 hours ago, hide # |
← Rev. 2  
Vote: I like it +7 Vote: I do not like it

I feel like the problems in this round, except for G (which I couldn't solve), weren't that good.

Also, the extension from F1 to F2 is essentially an existing problem (https://qoj.ac/problem/2995), with an even better time complexity.

  • »
    »
    23 minutes ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    It has the same time complexity, isn’t it? Moreover, the crux of the problem was to understand that there is not more that $$$\log(A)$$$ transformations. Because of the fact that we need to do transformations +-9 times gives you greater time complexity.

»
2 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I had a simpler solution for D.

Let's assume the array has an even length. Visually, if we "unfold" the hill and place it's elements in order it's gonna put all the outermost pairs A[i] and A[n-1-i] next to each other. This means that if we sort the initial array, in every pair A[2k] and A[2k+1] there must be one at an even position and one at an odd position, as one of them is gonna go to the left side and one to the right side, and their positions will have opposite parity. If the array has an odd length, we can just skip over the first element and solve for the rest of the array.

All you have to do in the implementation is sort the array and go through every pair where A[2k], A[2k+1] and check that their parities don't match. Fits in 15 lines.

»
106 minutes ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

shouldn't the Time Complexity of $$${C}$$$ be $$${O(n\cdot\sqrt[3]{x}+\sqrt{x})}$$$ ?

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

No idea how my solution worked on F1, but I'm not complaining

»
79 minutes ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

C was much harder than D

  • »
    »
    67 minutes ago, hide # ^ |
    ← Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    C was simple: if gcd(v[i],x)>1 then we can take full of v[i] as v[i] will continously decresed by the gcd and it will remain same through this process...and if u think internally gcd will always be one of the divisor of x..and each divisor will give answer independently...so bruteforcing over each divisor individually and try to take as much as elements which are divisable as sum....ans will be the maximum sum

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

Also, my post-contest discussion stream for all problems is here