qi qiu

摘要: #include<stdio.h>int data[99];int vist[99];int shu;int max;void dfs(int step,int sum){ int left=-1; int right=-1; if(step==shu-1) { for(int i=0;i<shu; 阅读全文
posted @ 2017-02-27 11:10 霸王程 阅读(201) 评论(0) 推荐(0) 编辑

摘要: #include using namespace std; #define SIZE 20 int data[SIZE]; int N; int used[SIZE]; int ballon[SIZE]; int count=0; int weizhi[SIZE]; int Maxscore; int score(int p,int len) { int pos=p; int r=p; ... 阅读全文
posted @ 2017-02-24 14:46 霸王程 阅读(99) 评论(0) 推荐(0) 编辑

打气球

摘要: #include using namespace std; #define SIZE 20 int data[SIZE]; int used[SIZE]={0}; int ballon[SIZE]; int N; int weizhi[SIZE]; int Maxscore; int socore(int ballon[SIZE],int len,int j){ int sum=0; ... 阅读全文
posted @ 2017-02-24 14:45 霸王程 阅读(72) 评论(0) 推荐(1) 编辑

c

摘要: https://www.zhihu.com/question/20591805/answer/34719737 阅读全文
posted @ 2017-02-20 11:46 霸王程 阅读(63) 评论(0) 推荐(0) 编辑

cgcg

摘要: http://www.buzhi.com/gwy/jpwz/53158.html http://www.gjgwy.net/szrd/zyzx/104798.html http://www.gwyzk.com/xingcejiqiao/43021.html http://www.gwyzk.com/ 阅读全文
posted @ 2017-02-16 10:39 霸王程 阅读(354) 评论(0) 推荐(0) 编辑

冰球

摘要: #include int map[99][99]; int mov1[4]={1,0,-1,0}; int mov2[4]={0,-1,0,1}; int sx; int sy; int ex; int ey; int X; int Y; int min; void milu(int x,int y,int step) { if(step>min) return... 阅读全文
posted @ 2017-01-25 10:28 霸王程 阅读(91) 评论(0) 推荐(0) 编辑

11

摘要: #include char jiyin[5][4]={ 'C','C','G','C', 'G','C','A','G', 'G','A','T','C', 'A','T','C','G', 'T','C','G','G'}; in... 阅读全文
posted @ 2017-01-24 16:37 霸王程 阅读(129) 评论(0) 推荐(0) 编辑

cross

摘要: 1 #include 2 #include 3 using namespace std; 4 5 #define SIZE 1000 6 static int map[10][SIZE][SIZE]; 7 int map2[SIZE][SIZE]; 8 int map1[SIZE][SIZE]; 9 int dx[4]={1,-1,0,0}; 10 i... 阅读全文
posted @ 2017-01-23 11:28 霸王程 阅读(166) 评论(0) 推荐(0) 编辑

hdu 1045

摘要: #include #include char map[99][99]; int maxsum=0; int sum=0; int N; int safe(int x,int y) { for(int i=x;i>=0;i--) { if(map[i][y]=='X') break; if(map[i][y]=='1') ... 阅读全文
posted @ 2017-01-17 15:41 霸王程 阅读(67) 评论(0) 推荐(0) 编辑

细胞

摘要: #include #include #define SIZE 100 static int data[SIZE]; static void build_data(void) { for(int c=0;c=0;i--) { if(ge[data1[i]]>=2) { ... 阅读全文
posted @ 2017-01-16 15:26 霸王程 阅读(94) 评论(0) 推荐(0) 编辑