2019牛客暑期多校训练营(第八场)

链接

B Beauty Values

水题,算一下各个元素贡献,发现恰好可以O(n)统计的。

原文地址:https://www.cnblogs.com/Inko/p/11383993.html