
构造思维
构造非常巧妙
不拿牌不改名
ACM刚入门,博客写错了可以留言给我啊
展开
-
构造思维+树形结构 Codeforces Round #612 (Div. 2) D题 Numbers on Tree
Numbers on TreeEvlampiy was gifted a rooted tree. The vertices of the tree are numbered from 1 to n. Each of its vertices also has an integer ai written on it. For each vertex i, Evlampiy calculated ci — the number of vertices j in the subtree of vertex i原创 2020-06-16 17:32:18 · 228 阅读 · 0 评论 -
构造思维 Codeforces Round #644 (Div. 3) F. Spy-string
F. Spy-stringYou are given n strings a1,a2,…,an: all of them have the same length m. The strings consist of lowercase English letters.Find any string s of length m such that each of the given n strings differs from s in at most one position. Formally, fo原创 2020-05-25 13:14:49 · 225 阅读 · 0 评论