版权申明jQuery HighchartsTable 由PMSIpilot创建,中文使用文档由Highcharts中文网发布本文由Theo、红烧鸡翅膀、Mr.Zhang翻译整理,版权归Highcharts中文网所有,除非得到允许,不允许以任何形式转载!一、关于(About)1、简介Highchart...
分类:
Web程序 时间:
2015-01-27 20:03:30
阅读次数:
3297
Map类: 1 package lyc.yushao.hadoop.mr.wc; 2 3 import java.io.IOException; 4 5 import org.apache.hadoop.io.LongWritable; 6 import org.apache.hadoop.io.....
分类:
其他好文 时间:
2015-01-25 22:25:54
阅读次数:
177
A. Mr. Kitayuta's Gift (枚举)题意:给一个长度不超过10的串,问能否通过插入一个字符使得新串成为回文串。分析:因为所给的串很多,所以可以枚举 “在哪插入” 和 “插入什么”,写一个二重循环枚举新串,判断是否为回文串。时间复杂度为O(n3)还可只枚举插入位置(在那个位置用一个特...
分类:
其他好文 时间:
2015-01-25 13:46:57
阅读次数:
174
A.Mr. Kitayuta, the Treasure Hunter 很显然的一个DP,30000的数据导致使用map+set会超时。题解给了一个非常实用的做法,由于每个点有不超过250种状态,并且这些状态都是以包含d连续的一段数字,那么可以以对d的偏移量作为状态。这算是很常见的一个优化了。#i....
分类:
其他好文 时间:
2015-01-24 15:48:14
阅读次数:
148
/* 描述 Mr. B is a famous music composer. One of his most famous work was his set of preludes. These 24 pieces span the 24 musical keys (there are music...
分类:
其他好文 时间:
2015-01-23 19:52:54
阅读次数:
237
B. Mr. Kitayuta's Colorful Graph
求不同颜色路径的个数,Floyd算法的应用。...
分类:
编程语言 时间:
2015-01-22 11:11:45
阅读次数:
249
首先读入所有的边与询问。将边按颜色分类。
按颜色进行并查集,
若此并查集内的点
若此并查集内的点 > 100,则将与这些点相关的所有询问查一遍。
那么时间复杂度为100*100/2*(M/100),或者为M/100*Q。
极限的时候两种方法都在一亿左右了,而且每次还需要在map里搞一搞,还要查询是否联通,不知道为啥没有超时。。
#include
#include
#include...
分类:
其他好文 时间:
2015-01-21 10:18:34
阅读次数:
302
题目描述:
Homework10 points
Your first-grade math teacher, Mr. Book, has just introduced you to an amazing new co...
分类:
其他好文 时间:
2015-01-21 08:59:29
阅读次数:
158
数据规模小,所以就暴力枚举每一种颜色的边就行了。#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespac...
分类:
其他好文 时间:
2015-01-20 20:25:02
阅读次数:
158