"Paradigm Cup" 2023 Nowcoder Summer Multi-School Training Camp 1 K-Subdivision

AI Translated from Chinese Problem Problem Statement Given a tree, for each node, consider the maximum value d such that after removing d edges, the node can still reach at least one other node. Compute the sum of these d values across all nodes. Input The first line contains an integer n (1 ≤ n ≤ 2×10^5), the number of nodes in the tree. The next n-1 lines contain edges of the tree. ...

2023/07/24 · Allen Wu

ACM Journey, Concludes with Dignity! (?)

Not too late to turn back, realize today is right and yesterday was wrong

2023/05/17 · Allen Wu

Codeforces Round 867 (Div. 3) Solutions

First CF solution write-up

2023/04/25 · Allen Wu

Allen's Dynamic Programming Basics

States and state transition equations

2023/03/13 · Allen Wu

Allen's Graph Theory Basics

For example… the one-stroke problem?

2023/02/26 · Allen Wu

Python Generating Polynomials and Newton's Method

Collision of Python and mathematics

2022/10/02 · Allen Wu