笔记
脆脆鲨.
栽一棵树最好的时间是十年前,其次是现在
展开
-
D. Shortest and Longest LIS
D. Shortest and Longest LIS Gildong recently learned how to find the longest increasing subsequence (LIS) in O(nlogn)O(nlogn) time for a sequence of length nn. He wants to test himself if he can implement it correctly, but he couldn’t find any online judg原创 2021-04-12 21:51:33 · 140 阅读 · 0 评论 -
Flower
http://acm.hdu.edu.cn/showproblem.php?pid=6486) 这个题如果用cin和cout的话,一定要加上std::ios::sync_with_stdio(false); cin.tie(0),cout.tie(0); 来提高效率,否则会时间限制,而且还有一个变态的条件是数组要从0开始,不可以从1开始输入,不知道为什么,求解。 下面是思路,一开始只是简单的觉得,只要有三个以上不同的数,他就一定不能成功,又觉得可能有好几种不同的减法,就可以有多个不同的数,但是又举不出原创 2021-04-28 23:13:45 · 129 阅读 · 3 评论