symons

___________每一天都是幸福的!!

  博客园  ::  :: 新随笔  ::  :: 订阅 订阅  :: 管理

2013年9月20日

摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 int gcd(int a,int b){// a-15 b-6 6 int c=1,t; 7 if(a<b) {t=a,a=b,b=t;} 8 while(c!=0){ 9 c=a%b;10 a=b;11 b=c;12 }13 return a;14 }15 int main(){16 int t,i,j,n;17 int temp,res;18 ... 阅读全文
posted @ 2013-09-20 20:31 symons 阅读(144) 评论(0) 推荐(0)

摘要: ...................... 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 bool vit[21];10 bool prim[10000];11 int n;12 bool isprim(int n){13 int i;14 for(i=2;i>n)68 // if(prim[n]==1) cout>n){71 while(~scanf("%d",&n)){72 // ... 阅读全文
posted @ 2013-09-20 18:40 symons 阅读(165) 评论(0) 推荐(0)

摘要: 1 /* 2 * dfs 3 * esc capslock 4 */ 5 6 #include 7 #include 8 #include 9 #include 10 using namespace std;11 int num[20],n;12 int l;13 bool success;14 string haha;15 bool vit[20];16 bool cmp(int a,int b){17 return a>b;18 }19 20 void init(string str){21 int i,j;22 l=str.length... 阅读全文
posted @ 2013-09-20 16:47 symons 阅读(194) 评论(0) 推荐(0)