Teamscode Spring 2023 Editorial

Revision en4, by willy108, 2023-04-06 18:23:36

This is the editorial for a recent contest Teamscode. The problems are open for upsolving on this gym. Problem credits are on the statements themselves.

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

### O. Prefix queries

Hint 1
Hint 2
Hint 3
Solution
Code

#### History

Revisions

Rev. Lang. By When Δ Comment
en15 willy108 2023-04-06 18:49:23 0 (published)
en14 willy108 2023-04-06 18:49:12 0 (saved to drafts)
en13 willy108 2023-04-06 18:48:49 0 (published)
en12 willy108 2023-04-06 18:48:36 26 Tiny change: '3-04-06], and me.' -> '3-04-06], [user:Esomer], and me.' (saved to drafts)
en11 willy108 2023-04-06 18:46:30 0 (published)
en10 willy108 2023-04-06 18:46:12 20 (saved to drafts)
en9 willy108 2023-04-06 18:43:45 0 (published)
en8 willy108 2023-04-06 18:42:54 135
en7 willy108 2023-04-06 18:35:23 2 Tiny change: 't in base 6 is all th' -> 't in base $6$ is all th'
en6 willy108 2023-04-06 18:27:33 1
en5 willy108 2023-04-06 18:26:55 13468
en4 willy108 2023-04-06 18:23:36 18578
en3 willy108 2023-04-06 17:10:34 9698
en2 willy108 2023-04-06 17:09:14 17334
en1 willy108 2023-04-06 17:06:54 5423 Initial revision (saved to drafts)