摘要:
1085 Perfect Sequence Link 这道题,别想着用 lower_bound 或 upper_bound 了。如果有相同元素,那么 len 很可能就算少了。 另外,p 要用 long long 类型,不然最后一个测试用例过不了。 不过这题用 lower_bound 或 upper_ 阅读全文
1085 Perfect Sequence Link 这道题,别想着用 lower_bound 或 upper_bound 了。如果有相同元素,那么 len 很可能就算少了。 另外,p 要用 long long 类型,不然最后一个测试用例过不了。 不过这题用 lower_bound 或 upper_ 阅读全文
posted @ 2022-07-18 23:23
Ryomk
阅读(42)
评论(0)
推荐(0)

BST、AVL......前中后序遍历……什么?!不用建树 ||Φ|(|T|Д|T|)|Φ||
最长递增子序列 LIS 用动态规划做。 Favorite Color Stripe (30) Link #include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <string> #i
Shopping in Mars (25) Link 这道题还可以用前缀和+二分做。 #include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <string> #include <s
浙公网安备 33010602011771号