### willy108's blog

By willy108, history, 16 months ago,

This is the editorial for a recent contest Teamscode. The problems are open for upsolving on this gym. Problems were prepared by oursaco, dutin, thehunterjames, Bossologist, Esomer, and me.

Editorial
Code

Solution
Code

Solution
Code

Solution
Code

Hint
Solution
Code

Solution
Code

Hint 1
Hint 2
Solution
Code

### H. A Certain Scientific Tree Problem

There are many solutions to this problem, some simpler than others, but I'll present the intended solution which involves the distance formula between two nodes.

Hint 1
Hint 2
Solution
Code

Solution
Code

Editorial
Code

Hint 1
Solution
Code

Solution
Code

### M. Magic labyrinth

Hint 1
Hint 2
Hint 3
Solution
Code for the first method
Code for the second method

Hint 1
Hint 2
Solution
Code

Hint 1
Hint 2
Hint 3
Solution
Code

Hint 1
Hint 2
Solution
Code

### Q. Another Floors Problem

A solution for this problem is not published yet. For now, please refer to this tester solution.

Code

### R. Bingo

Solution for k = 20 that also happens to cheese and ac
Intended solution. Can be used to solve k = 27
Code
• +87

 » 16 months ago, # |   0 Auto comment: topic has been updated by willy108 (previous revision, new revision, compare).
 » 16 months ago, # |   +18 posted in record time
 » 2 weeks ago, # |   0 edge contribution solution in H:Let $\mathrm{sz}(x) = 2^x-1$Answer: $2\cdot\sum_{h=0}^{d-1} (\mathrm{sz}(d) - \mathrm{sz}(h))\cdot \mathrm{sz}(h)\cdot 2^{d-h-1}$