代码改变世界

将博客搬至CSDN

2016-12-01 13:54 by HaodongGUO, 106 阅读, 0 推荐, 收藏, 编辑
摘要:以后博客园将不再更新,统一去csdn。 阅读全文

poj1182测试数据过了,但A不了,暂时放在这,以后再看

2015-06-20 16:52 by HaodongGUO, 170 阅读, 0 推荐, 收藏, 编辑
摘要:#include#define MAXN 1002using namespace std;int T[MAXN],X[MAXN],Y[MAXN],par[MAXN],shugao[MAXN];void init(int n){ int i; for(i=0;i> N>>K; for... 阅读全文

score——3354

2015-06-19 19:50 by HaodongGUO, 150 阅读, 0 推荐, 收藏, 编辑
摘要:#include#include#include#includeusing namespace std;int main(){ int n,i,j,sum=0; char s[81]; scanf("%d%*c",&n); while(n--) { sum... 阅读全文

杭电1241

2015-06-18 22:20 by HaodongGUO, 119 阅读, 0 推荐, 收藏, 编辑
摘要:#include#include#include#include#includeusing namespace std;int dx[8]={0,0,-1,1,-1,1,-1,1};int dy[8]={1,-1,0,0,-1,1,1,-1};char s[202][202];int cnt,m,n... 阅读全文

杭电1010(WA)

2015-06-18 21:03 by HaodongGUO, 163 阅读, 0 推荐, 收藏, 编辑
摘要:#include#include#include#include#includeusing namespace std;char s[100][100];int flag=-1;int bx[4]={0,0,-1,1};int by[4]={-1,1,0,0},n,m;void dfs(int x,... 阅读全文

poj——3176

2015-06-18 13:03 by HaodongGUO, 131 阅读, 0 推荐, 收藏, 编辑
摘要:#include #include#include//#include#include#includeusing namespace std;int s[360][360];int dfs(int x,int y,int n){ //cout">s[i][j];}result=dfs(0,0,... 阅读全文

今天看刘汝佳的书,用面向对象的重载用算符打大数,自己也打了篇

2015-06-13 16:11 by HaodongGUO, 196 阅读, 0 推荐, 收藏, 编辑
摘要:#include #include#include#includeusing namespace std;#define maxn 1002struct bign { int len,s[maxn];bign (){ memset(s,0,sizeof(s)); len=1;} string str... 阅读全文

6174问题

2015-05-30 15:00 by HaodongGUO, 113 阅读, 0 推荐, 收藏, 编辑
摘要:#include#includeint main(){ int num[10],found,count=1,n,i; int get_next(int x); scanf("%d",&num[0]); printf("%d",num[0]); while(1) {... 阅读全文

Uva_489

2015-05-16 17:44 by HaodongGUO, 103 阅读, 0 推荐, 收藏, 编辑
摘要:#include#includechar a[1000],b[1000];int main(){ int n,t,i,j; while(scanf("%d",&n)!=-1&&n!=-1) { t=0; memset(a,0,sizeof(a)); ... 阅读全文

ZJU_1004Anagrams by Stack

2015-05-15 21:55 by HaodongGUO, 101 阅读, 0 推荐, 收藏, 编辑
摘要:#includeusing namespace std;string a,b;void Anagrams(int iPos,int iDeep,string operate,string pop,string push){ int i; for(i=0;i=iPos;i--)//从pop... 阅读全文