随笔分类 - 板子们
摘要://主要这些东西竟然都不会手打... 队列 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];
阅读全文
摘要: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 }
阅读全文
摘要:存图 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;
阅读全文
摘要:双向链表 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
阅读全文

浙公网安备 33010602011771号