摘要: 容易发现单峰函数取到极值时导数为0,而导数又是单调的,所以可以直接在导数上二分。 洛谷板子: #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> using namespace std; #def 阅读全文
posted @ 2021-10-20 08:50 Smallbasic 阅读(53) 评论(0) 推荐(0)