The
k-th Largest Group
| Time Limit: 2000MS | Memory Limit: 131072K | |
| Total Submissions: 7255 | Accepted: 2335 |
Description
Newman likes playing with cats. He possesses lots of cats in his home. Because the number of cats is really huge, Newman wants to group some of the cats. To do that, he first offers a n

Newman喜欢和他的猫玩耍,并给每只猫分配了编号。他有时会将某些猫所在的组合并,同时需要知道任何时候第k大的组的大小。题目要求根据输入的操作指令,用数据结构解决这个问题,特别地,当操作类型为1时,输出第k大的组的大小。

3284

被折叠的 条评论
为什么被折叠?



