转载自:http://acm.hdu.edu.cn/forum/read.php?tid=6158sample input:4 4 5S.X...X...XD....问题:(1):在发现当前节点无法到达时,这点弹出栈,并且把这点的标记重新刷为'.'(2):如何在dfs中既要保证到达又要使时间正好呢?...
分类:
其他好文 时间:
2014-07-19 18:31:08
阅读次数:
335
Problem Description统计一个给定字符串中指定的字符出现的次数Input测试输入包含若干测试用例,每个测试用例包含2行,第1行为一个长度不超过5的字符串,第2行为一个长度不超过80的字符串。注意这里的字符串包含空格,即空格也可能是要求被统计的字符之一。当读到'#'时输入结束,相应的结...
分类:
其他好文 时间:
2014-07-19 16:36:41
阅读次数:
190
Description 给出3*n个数xi,要求构造三个长度为n的序列ai,bi,ci,使得满足下列条件: 1到3*n的每个数都在三个序列中的某个出现一次且仅一次; S=sum((x[ai]-x[bi])*x[ci])最大。 输出最大的S。多组数据。Input Format 第一行...
分类:
其他好文 时间:
2014-07-19 14:39:18
阅读次数:
214
技术: Unity NGUI Buttion,Scroll View,UI input, F2 改名 Linux Xargs英语: blather cunt droll amputate forlorn don cub
分类:
其他好文 时间:
2014-07-19 14:35:59
阅读次数:
198
在Mahout 学习(三)中,我贴了example的代码,里面生成向量文件的代码:InputDriver.runJob(input, directoryContainingConvertedInput, "org.apache.mahout.math.RandomAccessSparseVector...
分类:
其他好文 时间:
2014-07-19 14:14:04
阅读次数:
218
IO概述: IO(Input output)流作用:IO流用来处理设备之间的数据传输 Java对数据的操作是通过流的方式 Java用于操作流的对象都在IO包中流按操作数据分为两种:字节流和字符流流按流向分为:输入流,输出流。IO流常用基类字节流的抽象基类:InputStream,OutputStr....
分类:
编程语言 时间:
2014-07-19 13:30:04
阅读次数:
358
Description
Problem E
Eat or not to Eat?
Input: Standard Input
Output: Standard Output
A young farmer has N cows, but they produced really really a very very small amount of milk. John ca...
分类:
其他好文 时间:
2014-07-19 08:09:15
阅读次数:
296
Marbles
Input: standard input
Output: standard output
I have some (say, n) marbles (small glass balls) and I am going to buy some boxes to store them. The boxes are of two types:
Type 1: each ...
分类:
其他好文 时间:
2014-07-19 08:01:10
阅读次数:
264
题目描述: This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns.输入: The input consist...
分类:
其他好文 时间:
2014-07-18 18:26:02
阅读次数:
227
通过鼠标单击单选框的动作,实现某个div或多个div的显示和隐藏。实例如下:JavaScript代码如下: 1 function divClick(){ 2 3 var show = ""; 4 show = $("input[name='AdPr...
分类:
编程语言 时间:
2014-07-18 17:19:47
阅读次数:
392