摘要:
D2. Remove the Substring (hard version) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output 阅读全文
摘要:
给定一个整数 MM,对于任意一个整数集合 SS,定义“校验值”如下: 从集合 SS 中取出 MM 对数(即 2∗M2∗M 个数,不能重复使用集合中的数,如果 SS 中的整数不够 MM 对,则取到不能取为止),使得“每对数的差的平方”之和最大,这个最大值就称为集合 SS 的“校验值”。 现在给定一个长 阅读全文
摘要:
B. Interesting Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output We'll call an array 阅读全文