2010年4月8日

hdu 2544

摘要: 第一次一次提交成功!!hole in one 依旧是dijkstra#include#define N 110#define max 999999int g[N][N];int dijkstra(int s,int n){ int i,j,u,min,dis[N],m... 阅读全文

posted @ 2010-04-08 11:41 草头菜 阅读(92) 评论(0) 推荐(0) 编辑

pku 2524

摘要: 经典的并查集运用,不解释要提高代码的正确率呀!!!!!!!!!!!!!!!!!!!!!!!!#include#define N 55000int set[N];int find(int a){ int i,j,r; i=a; r=a; while(r!=set[r])... 阅读全文

posted @ 2010-04-08 11:40 草头菜 阅读(80) 评论(0) 推荐(0) 编辑

输入输出模板

摘要: #include int main(){ freopen("slyar.in", "r", stdin); freopen("slyar.out", "w", stdout);/**//* 中间按原样写代码,什么都不用修改 */ fclose(... 阅读全文

posted @ 2010-04-08 11:38 草头菜 阅读(83) 评论(0) 推荐(0) 编辑

hdu1002

摘要: 多次PE 太不细心了#include#includeint main(){ char op1[1002],op2[1002]; int c,i,j,n,m,s1[1002],s2[1002],len1,len2,count; count=1; scanf("%d",&... 阅读全文

posted @ 2010-04-08 11:36 草头菜 阅读(112) 评论(0) 推荐(0) 编辑

人工智能学习书籍

摘要: From: http://blog.csdn.net/pongba/archive/2008/09/11/2915005.aspx 1. 《Programming Collective Intelligence》,近年出的入门好书,培养兴趣是最重要的一环,一上来看大部... 阅读全文

posted @ 2010-04-08 11:34 草头菜 阅读(127) 评论(0) 推荐(0) 编辑

关于读书

摘要: From http://blog.youxu.info/2007/10/21/book-reading/大学读经典书, 能缩小自己和发达国家学生的差距. 我们国家的大学和发达国家相比, 差距大家也都能看到. 在理工科上, 或许中国大学唯一能和外国大学在同一起跑线的, ... 阅读全文

posted @ 2010-04-08 11:20 草头菜 阅读(95) 评论(0) 推荐(0) 编辑

人工智能学习书籍

摘要: 出处:http://blog.csdn.net/pongba/archive/2008/09/11/2915005.aspx 1. 《Programming Collective Intelligence》,近年出的入门好书,培养兴趣是最重要的一环,一上来看大部头很容易被吓走的:P 2. 《AI, Modern Approach 2nd》(无争议的领域经典)。 3. 《The Elements... 阅读全文

posted @ 2010-04-08 11:12 草头菜 阅读(3700) 评论(0) 推荐(0) 编辑

2010年3月29日

hdu 1002

摘要: 多次PE 太不细心了#include<stdio.h>#include<string.h>int main(){ char op1[1002],op2[1002]; int c,i,j,n,m,s1[1002],s2[1002],len1,len2,count; count=1; scanf("%d",&n); m=n; while(m--) { memset(s... 阅读全文

posted @ 2010-03-29 15:56 草头菜 阅读(2861) 评论(0) 推荐(1) 编辑

2010年3月25日

输入输出模板

摘要: #include <stdio.h>int main(){ freopen("slyar.in", "r", stdin); freopen("slyar.out", "w", stdout); /**//* 中间按原样写代码,什么都不用修改 */ fclose(stdin); fclose(stdout); return 0;} 阅读全文

posted @ 2010-03-25 18:04 草头菜 阅读(149) 评论(0) 推荐(0) 编辑

poj 2742

摘要: 此poj乃http://poj.grids.cn两次AC,没注意到输入的行间有空格。认真读题,认真读题。磨刀不误砍柴工,每道题题干要读三遍!!!#include<stdio.h>int main(){ int i,n,c[30],max,u; char ch; scanf("%d",&n); getchar(); while(n--) { for(i=0;i<26;i+... 阅读全文

posted @ 2010-03-25 16:39 草头菜 阅读(172) 评论(0) 推荐(0) 编辑

导航