willy108's blog

By willy108, history, 20 months ago, In English

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.

A. What do you do when the contest starts? Are you busy? Will you solve Bingo?

Editorial
Code

B. Mountain Climbing Easy

Solution
Code

C. No Sweep

Solution
Code

D. Multiplication Table

Solution
Code

E. Cyclic Shifts

Hint
Solution
Code

F. Great Common Multiple

Solution
Code

G. Daggers

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

I. Mountain Climbing Hard

Solution
Code

J. Two and Three

Editorial
Code

K. That Time I Got Reincarnated As A String Problem

Hint 1
Solution
Code

L. Stuck on Bricks

Solution
Code

M. Magic labyrinth

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

N. This Tree Problem Is Done For

Hint 1
Hint 2
Solution
Code

O. Prefix queries

Hint 1
Hint 2
Hint 3
Solution
Code

P. In Another World With My Range Query Problems

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
  • Vote: I like it
  • +87
  • Vote: I do not like it

»
20 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
20 months ago, # |
  Vote: I like it +18 Vote: I do not like it

posted in record time

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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} $$$