上一页 1 ··· 3 4 5 6 7 8 9 下一页

poj2676

摘要: #include<stdio.h> int num,v[100][2],map[10][10]; //bool pd[10][10]; //判断输入的时候是否为零 bool judge(int x,int y,int k) { int i,j,it,jt; for(i=0;i<9;i++) { if 阅读全文
posted @ 2016-12-21 09:40 霸王程 阅读(86) 评论(0) 推荐(0) 编辑

分时间uu

摘要: #include<stdio.h> int map[20][4]; typedef struct node{ int star; int end; }node; node dui[100]; int step[14]; int max=0; int sum; int cass; int N; int 阅读全文
posted @ 2016-12-21 09:21 霸王程 阅读(192) 评论(0) 推荐(0) 编辑

kuohao

摘要: #include <stdio.h> int b[50]; int a[50]; int w[50]; int main() { freopen("in.txt","r",stdin); int t; scanf("%d",&t); while(t--) { int n; int k=1; int 阅读全文
posted @ 2016-12-19 16:19 霸王程 阅读(134) 评论(0) 推荐(0) 编辑

数括号

摘要: #include<stdio.h> int data[21]; int kuohao[100]; int j; int vist[100]; int ans[100]; int p; int cas; int N; void huanyuan() { for(int i=0;i<N;i++) { i 阅读全文
posted @ 2016-12-19 09:07 霸王程 阅读(103) 评论(0) 推荐(0) 编辑

剪纸片2

摘要: #include<stdio.h> int bu[99]={0}; int shu=124; int mu=48; int ans[99]; int max=0; int count=0; int weishu=0; void anss() { int f=shu; int c=10; int d= 阅读全文
posted @ 2016-12-16 15:21 霸王程 阅读(74) 评论(0) 推荐(0) 编辑

剪纸片

摘要: #include<stdio.h> int bu[3]={0}; int shu=1245; int mu=48; int ans[7]; int max=0; void anss() { int f=shu; int c=10; int d=0; for(int i=2;i>=0;i--) { i 阅读全文
posted @ 2016-12-16 14:55 霸王程 阅读(81) 评论(0) 推荐(0) 编辑

poj分类

摘要: 初期: 一.基本算法: (1)枚举. (poj1753,poj2965) (2)贪心(poj1328,poj2109,poj2586) (3)递归和分治法. (4)递推. (5)构造法.(poj3295) (6)模拟法.(poj1068,poj2632,poj1573,poj2993,poj2996 阅读全文
posted @ 2016-12-15 16:04 霸王程 阅读(91) 评论(0) 推荐(0) 编辑

门和人

摘要: #include<stdio.h>int step[10]={0};int men[10]={0};int count=0;void go(){ for(int i=0;i<10;i++) { if(men[i]!=0) { while(men[i]!=0) { if(step[i]!=1) { s 阅读全文
posted @ 2016-12-15 14:24 霸王程 阅读(122) 评论(0) 推荐(0) 编辑

quanpailie quanbianli

摘要: #include<stdio.h>char data[5]={'a','b','c','d','e'};int vist[5]={0};char step[5]={0};char bu[5];void quan(int i){ if(i==5) { for(int a=0;a<5;a++) prin 阅读全文
posted @ 2016-12-15 09:41 霸王程 阅读(123) 评论(0) 推荐(0) 编辑

约瑟夫

摘要: #include<stdio.h>int k;int M;int step[100];int yue(int m){ int a=0; int wo=0; for(int i=0;;i++) { if(wo==k) return 1; if(step[i%(2*k)]==0) continue; e 阅读全文
posted @ 2016-12-15 08:29 霸王程 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页