摘要: 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 阅读(181) 评论(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 阅读(221) 评论(0) 推荐(0) 编辑