摘要: #include<iostream> #include<algorithm>#include<iomanip>using namespace std;const int N=500;static int a[N][N];int main(){ int n,m; cin>>n>>m; int i=1, 阅读全文
posted @ 2021-01-13 11:20 mdslanren 阅读(46) 评论(0) 推荐(0)
摘要: #include<iostream>#include<algorithm>using namespace std;const int N=510;int f[N][N];int main(){ int n; cin>>n; for(int i=1;i<=n;i++) for(int j=1;j<=i 阅读全文
posted @ 2021-01-13 10:42 mdslanren 阅读(45) 评论(0) 推荐(0)
摘要: 绝对值不等式需要能取到区间【a,b】上时才能取等号。 #include<iostream>#include<algorithm>using namespace std;int main(){ int N; cin>>N; int a[N]; for(int i=0;i<N;i++) cin>>a[i 阅读全文
posted @ 2021-01-13 10:01 mdslanren 阅读(73) 评论(0) 推荐(0)
摘要: 利用矢量法避开讨论正负的问题,大意就是给三角形判断与圆是否相交的问题 struct l { double x; double y; }; inline double dis(double x,double y,double m,double n,double o,double p)\判断可能的三种情 阅读全文
posted @ 2021-01-09 22:09 mdslanren 阅读(211) 评论(0) 推荐(0)