omsincoconut's blog

By omsincoconut, 9 hours ago, In English
Rating predictions

2261A - Hey, It's Me, Souvlakity

Author: SpyrosAliv
Preparation, Editorial: Marszpace

Hint 1
Hint 2
Solution
Code
Rate The Problem!

2261B - What's the Capital of France?

Author, Preparation, Editorial: omsincoconut

Hint 1
Hint 2
Hint 3
Solution
Code
Rate The Problem!

2261C - I Know About a Million Things

Author, Preparation, Editorial: Marszpace

Hint 1
Hint 2
Hint 3
Solution
Code (C++)
Rate The Problem!

2261D1 - Come Be My Friend, Don't Be So Scared (Easy Version)

Author, Preparation: omsincoconut Editorial:Proof_by_QED

Hint 1
Hint 2
Solution
Code
Rate The Problem!

2261D2 - Come Be My Friend, Don't Be So Scared (Hard Version)

Author, Preparation: omsincoconut Editorial:Proof_by_QED

Hint 1
Hint 2
Hint 3
Solution
Code
Rate The Problem!

2261E - What Does the Cow Say?

Author, Preparation, Editorial: yse

Hint 1
Hint 2
Solution
Code (C++)
Rate The Problem!

2261F1 - Plegma II: Ask Me Any Cell (Easy Version)

Author, Preparation, Editorial: SpyrosAliv

Hint 1
Hint 2
Solution
Code
Rate The Problem!

2261F2 - Plegma II: Ask Me Any Cell (Hard Version)

Author, Preparation, Editorial: SpyrosAliv

Hint 1
Hint 2
Solution
Code
Rate The Problem!

2261G - 1 2 3 and XOR, Where Did Everybody Go?

Author, Preparation, Editorial: chromate00

Hint 1
Hint 2
Hint 3
Solution
Code
Rate The Problem!

2261H - Oh Tree Tree Tree, No Need to Leave

Author & Editorial: SpyrosAliv
Preparation: SpyrosAliv & ttamx

Hint 1
Hint 2
Solution
Code
Rate The Problem!
  • Vote: I like it
  • +48
  • Vote: I do not like it

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

In Problem D1 idk why i was trying to find the most optimal answer so bad that even though i got the solution, i was thinking that my solution is wrong and there must be a smaller number of sensor possible.

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

    i actually found the (n+2)/2 but didn't realise that i can get (n+1)/2. i realised that it is close to n/2. my pattern was correct but just 1 gap difference. was quite sad

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

Turtle speed editorial :O

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

I solved E like this, im trying to merge some run with some another run (of left brackets from left to right.) I keep a prefix sum of gain in longest length if i merge some runs (length of left run + length of right run — number of right brackets in between), then I use sparsetable to query the best answer for each run of left brackets building leftwards and I handle the first run of brackets differently since you dont lose a left bracket from an operation

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

I solved G without trie or any data structures: 395029892

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

F1 can be solved with backtracking 395018997

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

G best 800 SkyMagic speaks the truth

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

On E, it is cool to think of the string as euler tour of the tree. Operation is then removing the leaf and creating new root for the tree.