摘要: import java.io.BufferedInputStream;import java.util.Scanner;public class poj1088 { static int vis[][];//应该每次初始化。。。。wa了好多次 public static void main(String[] args) { Scanner cin = new Scanner(new BufferedInputStream(System.in)); int n=cin.nextInt(); while(n-->0){ int r = cin.nextInt(); int c = c... 阅读全文
posted @ 2013-08-09 18:40 HPU---张振强 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 滑雪Time Limit:1000MSMemory Limit:65536KTotal Submissions:68012Accepted:25018DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9一个人可以从某个点滑向上... 阅读全文
posted @ 2013-08-09 11:11 HPU---张振强 阅读(146) 评论(0) 推荐(0) 编辑