摘要: 想混牌子... 阅读全文
posted @ 2017-10-23 19:11 mybing 阅读(435) 评论(0) 推荐(1) 编辑
摘要: 1.首先安装anaconda https://www.anaconda.com/ 官网上面一般是最新版本的(目前是python3.9) 但是很多包不支持新版本的python,如果需要旧版本的,那可以到这里来下载https://repo.anaconda.com/archive/ 其中Anaconda 阅读全文
posted @ 2022-10-15 23:25 mybing 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 凸包板子 #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> using namespace std; struct Point { int x,y; }; Point a 阅读全文
posted @ 2020-10-26 19:00 mybing 阅读(88) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #define ls (p<<1) #define rs ((p<<1)|1) #define l(x) tree[x].l #define r(x) 阅读全文
posted @ 2020-09-10 20:37 mybing 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 不知道再哪里炸了longlong,懒得想了,全开就好了 #include <bits/stdc++.h> using namespace std; long long a[200100], c[200100], c1[200100], c2[200100], n; long long ans1 = 阅读全文
posted @ 2020-09-03 16:34 mybing 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int n,m,t,x[101000],y[101000],a[201000]; int main() { scanf("%d%d",&n,&m);t=0; for(int i=1;i<=m;i++) { sc 阅读全文
posted @ 2020-09-03 10:10 mybing 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 带权并查集 #include<cstdio> #include<string> #include<cstring> #include<algorithm> #include<cmath> #include<iostream> using namespace std; int n,m,x[10010] 阅读全文
posted @ 2020-09-03 09:31 mybing 阅读(113) 评论(0) 推荐(0) 编辑
摘要: luoguP1955 [NOI2015]程序自动分析 哇,这道题是把我坑惨了。。。 首先是快读打错了,>=0写成>0,那还玩屁啊 然后后来发现是思想上也有问题,因为开始想着是按照所给的顺序依次解决就好了,但是没有考虑到,如果a!=b,b!=c,但是并不代表a!=c啊,这就非常好玩了。 #includ 阅读全文
posted @ 2020-09-02 09:18 mybing 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int xx,yy,vv,dis[510],len=0,lin[510],T,n,m; bool vis[510]; struct one { int y,v,next; }; one e[20100]; // 阅读全文
posted @ 2020-09-01 15:17 mybing 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 悬线法 浅谈用极大化思想解决最大子矩阵问题 #include<bits/stdc++.h> using namespace std; int n,m,l[1010][1010],r[1010][1010],height[1010][1010]; char ch; bool f[1010][1010] 阅读全文
posted @ 2020-08-29 15:54 mybing 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 和上一道一样,只不过换成正方形罢了 #include<bits/stdc++.h> using namespace std; int x,y,ans=0,n,highest,lowest; struct one{int x,y;}; one e[10010]; bool cmp(one aa,one 阅读全文
posted @ 2020-08-29 11:35 mybing 阅读(101) 评论(0) 推荐(0) 编辑