2016年5月4日

一种排序

摘要: 1 #include <algorithm> 2 #include <cstdio> 3 using namespace std; 4 typedef struct node { 5 int c,x,y; 6 } node; 7 node s[1010]; 8 9 bool cmp(node a,n 阅读全文

posted @ 2016-05-04 20:54 青春的梦想付诸行动 阅读(102) 评论(0) 推荐(0)

大数阶乘

摘要: 1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 using namespace std; 5 unsigned short s[20000];//最多可以容纳5000阶乘;且必须为int型,当为short型时,数组元 阅读全文

posted @ 2016-05-04 18:20 青春的梦想付诸行动 阅读(175) 评论(0) 推荐(0)

吝啬的国度 简单的图搜索

摘要: 1 #include <stdio.h> 2 #include <string.h> 3 #include <math.h> 4 #include <stdlib.h> 5 int pre[100005]; 6 typedef struct edge 7 { 8 int v; 9 struct ed 阅读全文

posted @ 2016-05-04 11:26 青春的梦想付诸行动 阅读(157) 评论(0) 推荐(0)

导航