The Little Elephant very much loves sums on intervals.
This time he has a pair of integers l and r (l?≤?r).
The Little Elephant has to find the number of such integers x (l?≤?x?≤?r),
that the f...
分类:
其他 时间:
2015-03-24 09:18:36
收藏:
0 评论:
0 赞:
0 阅读:
307
主要是学习Mars的Java4Android 接口的应用这集视频做的笔记
引例:
接口是面向对象的核心,
例子是有一个Printer的接口(定义一种标准,有开机、关机和打印),然后HPPrinter类、CanonPrinter类去实现这个接口
1、Printer.java
interface Printer{
public void open();
public void c...
分类:
其他 时间:
2015-03-24 09:18:26
收藏:
0 评论:
0 赞:
0 阅读:
186
今天学习和认识了一下,过滤器和SpringMVC的拦截器的区别,学到了不少的东西,以前一直以为拦截器就是过滤器实现的,现在想想还真是一种错误啊,而且看的比较粗浅,没有一个全局而又细致的认识,由于已至深夜,时间原因,我就把一些网友的观点重点摘录下来,大家仔细看后也一定会有一个比较新的认识(在此非常感谢那些大牛们的无私奉献,分享他们的经验与心得,才能让像我这样的小白有机会站一下你们这些巨人的肩膀,才能...
分类:
编程语言 时间:
2015-03-24 09:18:16
收藏:
0 评论:
0 赞:
0 阅读:
207
平台:Windows 7 x86,OpenCV2.4.9,OpenNI1.5.4.0,VS2010
采用了4种方式对彩色图和深度图进行滤波,分别为均值滤波、高斯滤波、中值滤波和双边滤波。并且利用滚动条实现4种滤波方式的参数可调。
#include
#include
#include
#include
#include
using namespa...
分类:
其他 时间:
2015-03-24 09:18:13
收藏:
0 评论:
0 赞:
0 阅读:
449
用程序实现发送邮件的功能在我们的实际开发中很常见,例如网站注册需要邮件确认,网站可以在用户生日当天发送一份贺卡,或者站内消息的推送等等。经过一个晚上的摸索,终于用javaMail实现了发邮件的功能,在这里写出来给需要的童鞋学习···...
分类:
编程语言 时间:
2015-03-24 09:17:56
收藏:
0 评论:
0 赞:
0 阅读:
269
题解:
全集是mnm^n,然后补集是第一个随便选,其后每个点有m-1种选法,是m?(m?1)n?1m*{(m-1)}^{n-1}
代码:
#include
#include
#include
#include
#define mod 100003
using namespace std;
long long n,m;
long long power(long long x,lo...
分类:
其他 时间:
2015-03-24 09:17:46
收藏:
0 评论:
0 赞:
0 阅读:
104
上篇介绍了service及其生命周期,这里scheduleAtFixedRate介绍java api中可直接查;这里写一个后台定时执行任务的例子,直接上代码:ScheduledThreadPoolExecutor是ThreadPoolExecutor的子类;
ThreadPoolExecutor,它可另行安排在给定的延迟后运行命令,或者定期执行命令。需要多个辅助线程时,
或者要求 ThreadPoo...
分类:
其他 时间:
2015-03-24 09:17:36
收藏:
0 评论:
0 赞:
0 阅读:
1036
#include
int main()
{
const int i=0;
int *j=(int *)&i;
*j=1;
printf("%d,%d\n",i,*j);
return 0;
}
对于上边这个看似简单的程序却是深藏玄机
windows平台
1.在 .c 文件中输出是 1,1 ,深究原因是因为 const 在.c文件中定义的变量是只...
分类:
其他 时间:
2015-03-24 09:17:26
收藏:
0 评论:
0 赞:
0 阅读:
147
Tickets
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1318 Accepted Submission(s): 639
Problem Description
Jesus, what a great...
分类:
其他 时间:
2015-03-24 09:17:17
收藏:
0 评论:
0 赞:
0 阅读:
99
A - KMP
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice HDU
1358
Description
For each prefix of a given string S with N characters...
分类:
其他 时间:
2015-03-24 09:16:56
收藏:
0 评论:
0 赞:
0 阅读:
188
简介
LiteHttp是一款简单、智能、灵活的HTTP框架库,它在请求和响应层面做到了全自动构建和解析,主要用于Android快速开发。借助LiteHttp你只需要一行代码即可完美实现http连接,它全面支持GET, POST, PUT, DELETE, HEAD, TRACE, OPTIONS 和 PATCH八种基本类型。LiteHttp能将Java Model转化为http请求参数,也能...
分类:
Web开发 时间:
2015-03-24 09:16:47
收藏:
0 评论:
0 赞:
0 阅读:
294
自己看着虚函数写的一点东西,算是笔记和记录问题吧。...
分类:
其他 时间:
2015-03-24 09:16:26
收藏:
0 评论:
0 赞:
0 阅读:
161
#ifndef #define #endif小小弄一下。...
分类:
其他 时间:
2015-03-24 09:16:16
收藏:
0 评论:
0 赞:
0 阅读:
172
在原来的struts基础上进行改造
1000000
text/plain,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/jpeg,audio/mpeg,...
分类:
Web开发 时间:
2015-03-24 09:16:06
收藏:
0 评论:
0 赞:
0 阅读:
272
#include
#include
#include
using namespace std;
class mPoint
{
public:
int x;
int y;
mPoint();
mPoint(int tx, int ty)
{
x = tx;
y = ty;
}
bool operator ==( const mPoint& rhs) const...
分类:
其他 时间:
2015-03-24 09:15:56
收藏:
0 评论:
0 赞:
0 阅读:
210
关于指针内存地址的一些浅探究。...
分类:
编程语言 时间:
2015-03-24 09:15:46
收藏:
0 评论:
0 赞:
0 阅读:
313
统计难题
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)
Total Submission(s): 20365 Accepted Submission(s): 8878
Problem Description
Ignatius最近遇到一个难题,老师交给他很...
分类:
其他 时间:
2015-03-24 09:15:36
收藏:
0 评论:
0 赞:
0 阅读:
261
Colored Sticks
Time Limit: 5000MS
Memory Limit: 128000K
Total Submissions: 31721
Accepted: 8391
Description
You are given a bunch of wooden sticks. Each endpoint of e...
分类:
其他 时间:
2015-03-24 09:15:26
收藏:
0 评论:
0 赞:
0 阅读:
185
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the...
分类:
编程语言 时间:
2015-03-24 09:15:16
收藏:
0 评论:
0 赞:
0 阅读:
277
//
// effective c++.cpp
// 笔记
//
// Created by fam on 15/3/23.
//
//
//---------------------------15/03/23----------------------------
//#01 视c++为一个语言联邦
{
...
分类:
编程语言 时间:
2015-03-24 09:15:06
收藏:
0 评论:
0 赞:
0 阅读:
170