A - Layout Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 3169DescriptionLike everyone else, cows like...
分类:
其他好文 时间:
2014-08-26 16:55:26
阅读次数:
220
1.Link:http://poj.org/problem?id=2503http://bailian.openjudge.cn/practice/2503/2.Content:BabelfishTime Limit: 3000MSMemory Limit: 65536KTotal Submissi...
分类:
其他好文 时间:
2014-08-26 15:23:06
阅读次数:
178
看数据规模,也懒得想了,裸DFS得了 1 import java.util.Scanner; 2 3 public class P1005 4 { 5 private static int best = Integer.MAX_VALUE; 6 7 //a[] 原始值 8 ...
分类:
其他好文 时间:
2014-08-26 01:41:55
阅读次数:
362
LeetCode: Best Time to Buy and Sell StockSay you have an array for which the ith element is the price of a given stock on day i.If you were only permi...
分类:
其他好文 时间:
2014-08-25 22:35:34
阅读次数:
261
传说当中的best coder让我做确实感觉怪怪的,第一道wa了两发,你就知道我当时的
窘境了,哎,不提了。
就说第二题吧,我一开始是这样想的,从1到k-2全都赋值为各自的序列数,即1,2,3...
直到k-2, 然后算出前k-1项的和为beg, 前k-2项的和为beg2;
从beg开始,直到n循环,找到那个能完全开方的数 i,用n-i就是第k个数,i-...
分类:
其他好文 时间:
2014-08-25 17:06:14
阅读次数:
125
T - Frogger
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit Status Practice POJ
2253
Appoint description:
System Crawler (2014-08-24)
Description
...
分类:
其他好文 时间:
2014-08-25 17:06:04
阅读次数:
202
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:
其他好文 时间:
2014-08-25 16:52:04
阅读次数:
238
5 life lessons you will learn the hard way五条垂暮之年才明白的道理Life is not easy when you are pursuing something worthwhile and ready to learn from the best exp...
分类:
其他好文 时间:
2014-08-25 11:31:04
阅读次数:
275
一个线段树问题节点记录这样几个值,sum(这个区间的总和),best(这个区间中的最大值),lazy(翻倍的lazy标记)这里的[a,b]区间代表数为a与b之间的那些东西,因为无论怎么弄这些相同数字的都是连续的 1 #include 2 #include 3 #include 4 #i...
分类:
其他好文 时间:
2014-08-25 11:28:34
阅读次数:
242
1.下载spark源码,在spark源码目录下面有个make-distribution.sh文件,修改里面的参数,使编译后能支持hive,修改后执行该文件。(要预先安装好maven才能编译)。2.将编译好的spark源码部署到机器上,然后将hive/conf中的hive-site.xml拷贝到spa...
分类:
其他好文 时间:
2014-08-25 10:02:34
阅读次数:
271