用动态规划解--滑雪题 算法分析》的相关内容

POJ 1088 滑雪

http://acm.pku.edu.cn/JudgeOnline/problem?id=1088  滑雪 Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 17699   Accepted: 5803 Description Michae ...
by switchlau 2008-05-17 浏览 (83) 回复 (0) 关键字:

数据结构的实现(持续完整中)

节点类 package graph; public class GraphNode { public GraphNode link; public int info; }
by leon_a 2007-06-25 浏览 (1255) 回复 (19)

D语言的性能不一定比Java强

public class Main { private static int fib(int n){ if(n==0 || n==1) return 1; else{ return fib(n-1)+fib(n-2); } } public static void main(String[] args){ for(int i=0; ...
by fxsjy 2007-11-30 浏览 (1964) 回复 (15)

骑士聚会(《程序员》的算法擂台)

在8×8的棋盘上分布着n个骑士,他们想约在某一个格中聚会。骑士每天可以像国际象棋中的马那样移动一次,可以从中间向8个方向移动,请你计算n个骑士的最早聚会地点和要走多少天,要求尽早聚会,且n个人走的总步数最少,先到聚会地点的骑士可以不再移动等待其他的骑士。 从键盘输入n(0<n<=64),然后一次输入n个其实的初始位置xi,yi(0<=xi,y<=7)。屏幕输出以空格分割的三 ...
by snowind9 2007-09-06 浏览 (971) 回复 (16)

帮忙看哈这段代码

import std.stdio; import std.string; int[] range(int start,int end) { int[] arr; for(int i=start;i<end;i++) { arr~=i; } return arr; } int onetotal(int start,int end) { int number; int ...
by honglang13 2008-03-31 浏览 (461) 回复 (11)

帮我除错

有个小程序: import std.string; const MaxListSize = 20; //the max size of the linelist1 struct STU { char[10] name; char[10] stuno; int age; int score; }; alias STU ElemType; class List //the definitio ...
by soulmachine 2007-09-29 浏览 (211) 回复 (2)

推荐知识库条目

Comming soon