摘要: Educational Codeforces Round 36 (Rated for Div. 2) F. Imbalance Value of a Tree You are given a tree T consisting of n vertices. A number is written o 阅读全文
posted @ 2018-01-22 11:52 p0ny 阅读(156) 评论(0) 推荐(0) 编辑
摘要: A.模拟。 B.模拟。比赛的时候这题出锅了,然后就unrated了。注意要先保证最大值最小,再保证字典序最大。 C.构造。挑一个大于N的质数然后连啊连就可以了。 D.可持久化Trie。弄两个Trie。一个记录字符串,另一个记录数字。 E.跟bzoj上的遥远的国度很类似。 阅读全文
posted @ 2018-01-22 11:38 p0ny 阅读(160) 评论(0) 推荐(0) 编辑