摘要:
原题链接 题解 1.首先,\(F(x)\) 图像一定是 下凹的,怎么证明我也不知道,只是感觉是这样 2.既然是下凹的,那么一定有最小值,区间内找极大值/极小值可以用三分 B站有个视频直观地讲解了,一看便知 还有一些小细节,请看讨论区 code #include <bits/stdc++.h> usi 阅读全文
posted @ 2024-04-07 22:31
纯粹的
阅读(59)
评论(0)
推荐(0)
摘要:
原题链接 题解 朝合力方向位移一段距离,并逐渐减小这个位移距离,需要痛苦的调参 code #include<bits/stdc++.h> using namespace std; double x=0,y=0; struct node { double x,y,w; }pos[1005]; int 阅读全文
posted @ 2024-04-07 13:47
纯粹的
阅读(18)
评论(0)
推荐(0)
摘要:
原题链接 题解 1.筛一筛就行 code #include<bits/stdc++.h> using namespace std; int heshu[1000006]={0},f[1000007]={0}; int main() { int n,m; cin>>n>>m; for(long lon 阅读全文
posted @ 2024-04-07 13:03
纯粹的
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号