摘要:
链接:https://ac.nowcoder.com/acm/contest/11256/J 来源:牛客网 题目描述 There are nn jewels under the sea, and you want to salvage all the jewels. Image that the s 阅读全文
摘要:
Soroush and Keshi each have a labeled and rooted tree on 𝑛n vertices. Both of their trees are rooted from vertex 11. Soroush and Keshi used to be at 阅读全文
摘要:
在做一道题目的时候需要对C++的set进行二分查找,于是自然而然的使用了std::upper_bound,然而结果是在第36个测试点超时了,改了一天尝试了各种卡常剪枝均没有效果,最后即将要与标程逐字符一致的时候突然发现过了,原因就是标程用的是set自带的upper_bound函数。上网查阅资料发现对 阅读全文