摘要:
CF 1548 E Gregor and the Two Painters 题解 考虑给每一个格子都设一个代表元。 设是最小的元素。 这种图有一个特殊的性质:如果一个点可以到大比他小的点那么一定存在一个和他联通且比他小的格子。 因为如果存在$(x',y')<(x,y)$则一定是$a_{x'}<a_x 阅读全文
摘要:
VK Cup 2021 - Elimination Engine (A-F)题解 A. Binary Decimal 答案为$\max{digit}$。 B. Putting Plates 沿着外围走一圈能放就放。 C. Pursuit 直接二分答案。 D. Secret Santa 原图构成基环树 阅读全文