电话本基本功能:1、增加联系人;2、删除联系人;3、显示联系人;4、查找联系人;5、修改联系人;6、清空电话本。...
分类:
其他好文 时间:
2015-05-29 10:14:37
阅读次数:
130
Radar Installation
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 59449
Accepted: 13394
Description
Assume the coasting is an infinite straight line. Land i...
分类:
其他好文 时间:
2015-05-29 10:11:35
阅读次数:
157
Problem Description
During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, villages connected by tunnels ...
分类:
其他好文 时间:
2015-05-29 10:11:46
阅读次数:
127
Fractal
Time Limit: 1000MS
Memory Limit: 30000KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
A fractal is an object or quantity that displays self-simi...
分类:
其他好文 时间:
2015-05-29 10:12:25
阅读次数:
185
git clone https://github.com/vhreal/仓库名
git add *
git add
git commit -m "修改代码描述"
git push origin master(分支名字)
http://www.xbc.me/git-commands/
http://www.cnblogs.com/lee0oo0/archive/2013...
分类:
其他好文 时间:
2015-05-29 10:09:53
阅读次数:
155
程序计数器、JVM栈、本地方法栈这三个内存区域和线程是一一对应的,并且每一个线程的这三个区域相互独立互不干扰。他们都随着线程的产生而产生,线程的灭亡而灭亡。JVM栈和本地方法栈中的栈帧都随着方法的加载而入栈,随着方法的结束而出栈。栈帧的大小是在程序员写类的时候就确定下来的。因此这三种区域的内存大小都具备确定性,当方法结束或线程结束后,这些内存空间就会自动被回收掉,所以JVM无需考虑这些区域的内存回收...
分类:
其他好文 时间:
2015-05-29 10:11:00
阅读次数:
116
KMP...
分类:
其他好文 时间:
2015-05-29 10:11:28
阅读次数:
156
The Embarrassed Cryptographer
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit Status Practice POJ
2635
Appoint description:
System Crawler (2015-05-28)
...
分类:
其他好文 时间:
2015-05-29 10:12:11
阅读次数:
211
//
// main.cpp
// poj3259
//
// Created by Fangpin on 15/5/28.
// Copyright (c) 2015年 FangPin. All rights reserved.
//
#include
#include
#include
#include
#include
using namespace std;
int g...
分类:
其他好文 时间:
2015-05-29 10:10:35
阅读次数:
138
Problem Description
FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.
The warehouse has N rooms. The i-th room con...
分类:
其他好文 时间:
2015-05-29 10:10:35
阅读次数:
125
问题
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on th...
分类:
其他好文 时间:
2015-05-29 10:08:13
阅读次数:
115
Problem Description
非常抱歉,本来兴冲冲地搞一场练习赛,由于我准备不足,出现很多数据的错误,现在这里换一个简单的题目:
前几天在网上查找ACM资料的时候,看到一个中学的奥数题目,就是不相交的曲线段分割平面的问题,我已经发到论坛,并且lxj 已经得到一个结论,这里就不
多讲了,下面有一个类似的并且更简单的问题:
如果平面上有n个点,并且每个点至少有2条曲线...
分类:
其他好文 时间:
2015-05-29 10:10:25
阅读次数:
136
Description
Download as PDFA couple of years ago, a new world wide crisis started, leaving many people with economical problems. Some workers of a particular company are trying to ask for an increase...
分类:
其他好文 时间:
2015-05-29 10:08:53
阅读次数:
122
一、Mapper类的实现
/**
* KEYIN 即k1 表示行的偏移量
* VALUEIN 即v1 表示行文本内容
* KEYOUT 即k2 表示行中出现的单词
* VALUEOUT 即v2 表示行中出现的单词的次数,固定值1
*/
static class MyMapper extends Mapper{
protected void map(LongWr...
分类:
其他好文 时间:
2015-05-29 10:09:21
阅读次数:
179
dfs 的题目。感觉还是比较难的。看了解题思路。
对于一个新加入的字母来说,每次判断只要保证含有这个字母的后缀子串没有重复即可。
比如说:
原先的串是:ACB
当新加入一个字母C后构成串ACBC,我们只需要看新加入的后缀C 和 他前一个字母B 是否构成重复字串;然后看一下含有两个字母的后缀 BC 和之前的 AC串是否构成重复字串。这也是dfs过程中最主要的那个循环的意思。#include <...
分类:
其他好文 时间:
2015-05-29 10:07:38
阅读次数:
91
数字和字符串上下文
在Perl中如何处理数据,如何求表达式的值,取决与上下文,不同操作符上下文不同。$result = '123' + '345'; ## 468
$result = 123 . 345 ; ##1233456
print "12 is less than 2!\n" if '12' lt '2'; ##lt为字符串比较
print "Oh noes! foo is ba...
分类:
其他好文 时间:
2015-05-29 10:07:49
阅读次数:
96
今天我来带领大家一起学习编写一个网络爬虫!其实爬虫很简单,没有想象中那么难,也许所有学问都是这样,恐惧源自于无知。废话不多说,现在开始我们的爬虫之旅吧。爬虫是什么?我们时常听说编程大牛嘴边一直念叨着“网络爬虫“,那网络爬虫究竟是何方神圣呢?
网络爬虫能够模仿用户浏览网页,并将所想要的页面中的信息保存下来。有些同学不禁要问:“我自己浏览网页,可以手动将数据保存下来啊,为何要写个程序去爬取数据呢?“道...
分类:
其他好文 时间:
2015-05-29 10:08:00
阅读次数:
97