- 博客(8)
- 资源 (4)
- 收藏
- 关注
原创 pku 1887 Testing the CATCHER
http://acm.pku.edu.cn/JudgeOnline/problem?id=1887 #includelong int f[50000],a[50000];int main(){ long int t,l,n,i,j,max,k=0,flag; t=0; while(1) { k++; l=0; flag=0; while(1) { scanf("%l
2009-10-11 16:58:00 460
原创 pku 1163 The Triangle
http://acm.pku.edu.cn/JudgeOnline/problem?id=1163 #include#includelong int sum[101][101],a[101][101];#define max(x,y) x>y?x:yint main(){ long int t,max; int i,j,n; while(scanf("%d",&n)!=EOF) {
2009-10-11 15:06:00 404
原创 pku 1458 Common Subsequence
http://acm.pku.edu.cn/JudgeOnline/problem?id=1458 #include#includeint f[505][505];char a[1000],b[1000];int main(){ while(scanf("%s %s",a,b)!=EOF) { int len1,len2,i,j,k,max; len1=strlen(a);
2009-10-10 20:25:00 533 3
原创 pku 2386 Lake Counting
http://acm.pku.edu.cn/JudgeOnline/problem?id=2386 一个纯粹的搜索题 代码:#include#includechar map[105][105];//方向数组int movx[8]={1,1,1,0,-1,-1,-1,0,},movy[8]={-1,0,1,1,1,0,-1,-1};int s,t;void dfs(int x,i
2009-10-09 16:52:00 470
原创 pku 1160 Post Office
http://acm.pku.edu.cn/JudgeOnline/problem?id=1160 题意:有V个村庄,要在V个村庄上建立S也邮局,使得所有的村庄到他们最近的邮局的距离和最小。(邮局建在村庄里面,和村庄占据着同一个点) 代码 :: #include#include#include#include#include #include using
2009-10-09 15:37:00 461
原创 pku 1141 Brackets Sequence
http://acm.pku.edu.cn/JudgeOnline/problem?id=1141 题目大意:给你一贯括号序列(只包含小括号和中括号),让你找出长度最小的regular brackets sequence包含此子序列.其中的regular brackets sequence定义如下:1)空序列是一个regular brackets sequence;2)如果s是一个re
2009-10-09 09:41:00 642
原创 pku 1050 To the Max
2009-10-07 To the MaxDescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the whole array
2009-10-07 16:52:00 818 3
原创 pku 3258 River Hopscotch
3258 River Hopscotch acm.pku.edu.cn/JudgeOnline/problem/*用二分法查找,求得最适合的key值。0--l之间有N个石头,删除M个,使得任意两个石头之间的距离增大,并且求出增大后的最小距离的最大值。不考虑起点和终点。起点为0 ,终点为l.如果M==0就输出距离的最大值!Sample Input25 5 2214112117Sampl
2009-10-07 16:04:00 530
数据库原理实验,熟悉操作SQL语言
2010-03-21
简单的职工管理系统(数据结构)
2010-03-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人