随笔分类 -  板子们

摘要://主要这些东西竟然都不会手打... 队列 1 #include<cstdio> 2 #include<iostream> 3 #define MAXN 1<<20 4 using namespace std; 5 int n; 6 struct queue{ 7 int l,r,q[MAXN]; 阅读全文
posted @ 2017-10-19 23:59 drizzly 阅读(312) 评论(0) 推荐(0)
摘要:GCD 1 #include<cstdio> 2 #include<iostream> 3 using namespace std; 4 long long gcd(int x,int y){ 5 if(x%y==0) return y; 6 else return gcd(y,x%y); 7 } 阅读全文
posted @ 2017-10-18 21:26 drizzly 阅读(209) 评论(0) 推荐(0)
摘要:存图 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #include<queue> 5 using namespace std; 6 const int Maxv=1000; 7 struct node{ 8 int v; 阅读全文
posted @ 2017-10-18 21:15 drizzly 阅读(233) 评论(0) 推荐(0)
摘要:双向链表 1 #include<cstdio> 2 #include<cstring> 3 #define MAXN 100005 4 using namespace std; 5 int n; 6 bool vis[MAXN]; 7 struct queue{ 8 int l,r,no; 9 }q 阅读全文
posted @ 2017-10-08 21:57 drizzly 阅读(221) 评论(0) 推荐(0)