摘要:
K-D Tree 模版 下面这个模版(洛谷P1429为例)可以实现k维空间查询给定点的m邻近点,存储于que这个大根堆中。 #include<bits/stdc++.h> #define ll long long #define sq(x) (x)*(x) #define N (250000) us 阅读全文
摘要:
A. R 链接:https://ac.nowcoder.com/acm/contest/23479/A 来源:牛客网 题目描述 小红拿到了一个长度为 nn 的字符串,该字符串仅由大写字母组成。 小红很喜欢红色(用'R'字母表示),但她非常讨厌紫色(用'P'字母表示)。 她想取一个连续子串,该子串包含 阅读全文
摘要:
As you might remember from our previous rounds, Vova really likes computer games. Now he is playing a strategy game known as Rage of Empires. In the g 阅读全文
摘要:
题目描述 Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy 阅读全文