![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GYM
King yu
KING FOR ME
展开
-
GYM-B - Minimal Area(求最小三角形)
最小三角形,相邻三个点组成的三角形最小: #include<stdio.h> #include<math.h> #include<algorithm> #define ll long long using namespace std; ll x[200005]={0}; ll y[200005]={0}; ll look(ll x1,ll y1,ll x2,l...原创 2019-08-10 10:41:20 · 190 阅读 · 0 评论 -
最小(大)表示法
给一个首尾相连的长度为n的字符串 找一个字典序最小的串。 算法目的是找字典序最小的串的开头位置。 设 f=0,e=1,k=0; 代码: //Gym - 101875B #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int a[500005]={0};...原创 2019-08-26 20:39:43 · 146 阅读 · 0 评论