Silver Cow Party
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 15533
Accepted: 7045
Description
One cow from each of N farms (1 ≤ N ≤ 1000) conveniently...
分类:
其他 时间:
2015-08-20 13:11:25
收藏:
0 评论:
0 赞:
0 阅读:
268
一个人的旅行
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 24921 Accepted Submission(s): 8664
Problem Description
虽然草儿是个路痴(就是在杭电待了一年多,居然...
分类:
其他 时间:
2015-08-20 13:11:15
收藏:
0 评论:
0 赞:
0 阅读:
284
上一篇文章说到了 log4j 的 properties 的配置方式,虽然感觉区别没有很大,但是 log4j.properties的配置方式里面不能使用 Filter 过滤器来限制日志级别,另一个原因在于 log4j.xml 在插入数据库的时候sql 语句可以放在 layout 属性的 ConversionPattern
参数中,而 log4j.properties 配置起来就显得更加麻烦。
...
分类:
其他 时间:
2015-08-20 13:10:55
收藏:
0 评论:
0 赞:
0 阅读:
249
4 映射和元组
4.1 设置一个映射,其中包含你想要的一些装备,以及它们的价格。然后构建另一个映射,采用同一组键,但是价格上打9折
映射的简单操作
Shell代码
scala> val map = Map("book"->10,"gun"->18,"ipad"->1000)
map: scala.collection.immutable.Map[ja...
分类:
其他 时间:
2015-08-20 13:10:46
收藏:
0 评论:
0 赞:
0 阅读:
162
今天学习了Dialog组件,并且将Dialog做了一下总结,下面是总结的内容和Demo
AlertDialog:功能最丰富、实际应用最广的对话框
ProgressDialog:进度对话框,
DatePickerDialog:日期选择对话框
TimePickerDialog:时间选择对话框
AlertDialog提供了四种预定义对话框
》带消息、带N个按钮的提示对话框
》带列表...
分类:
其他 时间:
2015-08-20 13:10:25
收藏:
0 评论:
0 赞:
0 阅读:
308
前言
你是否觉得自己从学校毕业的时候只做过小玩具一样的程序?走入职场后哪怕没有什么经验也可以把以下这些课外练习走一遍(朋友的抱怨:学校课程总是从理论出发,作业项目都看不出有什么实际作用,不如从工作中的需求出发)
建议:
不要乱买书,不要乱追新技术新名词,基础的东西经过很长时间积累而且还会在未来至少10年通用。
回顾一下历史,看看历史上时间线上技术的发展,你才能明白明天会是什么样。
一...
分类:
其他 时间:
2015-08-20 13:09:25
收藏:
0 评论:
0 赞:
0 阅读:
228
DZY has a hash table with p buckets, numbered from
0 to p?-?1. He wants to insert
n numbers, in the order they are given, into the hash table. For the
i-th number xi, DZY will put it into the bucke...
分类:
其他 时间:
2015-08-20 13:08:35
收藏:
0 评论:
0 赞:
0 阅读:
397
[Author]: kwu --- 创建hive整合hbase的表总结,如下两种方式:...
分类:
其他 时间:
2015-08-20 13:08:25
收藏:
0 评论:
0 赞:
0 阅读:
185
题目大意:
给定M种颜色的珠子,每种颜色珠子的个数均不限,将这些珠子做成长度为N的项链。
问能做成多少种不重复的项链,最后的结果不会超过int类型数据的表示范围。并且两
条项链相同,当且仅当两条项链通过旋转或是翻转后能重合在一起,且对应珠子的颜
色相同。
解题思路:
Polya定理的应用。先来看Polya定理。
Polya定理:设 G = {a1,a2,…,ag}是 N 个对象的置换群,用 M 种颜色给这 N 个
对象着色,则不同的着色 方案数为:
|G|^(-1) *...
分类:
其他 时间:
2015-08-20 13:08:18
收藏:
0 评论:
0 赞:
0 阅读:
372
http://poj.org/problem?id=1904
Description
Once upon a time there lived a king and he had N sons. And there were N beautiful girls in the kingdom and the king knew about each of his sons which o...
分类:
其他 时间:
2015-08-20 13:07:55
收藏:
0 评论:
0 赞:
0 阅读:
298
http://pointclouds.org/documentation/tutorials/
http://wg-perception.github.io/object_recognition_core/install.html#install
http://www.jeffdelmerico.com/wp-content/uploads/2014/03/pcl_tutorial.pdf
...
分类:
其他 时间:
2015-08-20 13:07:46
收藏:
0 评论:
0 赞:
0 阅读:
261
#include
#include
using namespace std;
int ans[6];
int n;
void dfs(int cnt)
{
int i,j;
for(i=0;i<cnt;i++) cout<<ans[i]<<" ";
if(cnt) cout<<endl;
int s=cnt?ans[cnt-1]+1:0;
for(i=s;i<n;i++) {
an...
分类:
其他 时间:
2015-08-20 13:07:17
收藏:
0 评论:
0 赞:
0 阅读:
203
源代码如下:
#include
#include
//#define Key int
#define hl h->l
#define hr h->r
#define hlr h->l->r
#define hll h->l->l
#define hrr h->r->r
#define hrl h->r->l
typedef int Key;
struct Item{
Key key;
c...
分类:
其他 时间:
2015-08-20 13:06:45
收藏:
0 评论:
0 赞:
0 阅读:
287
题目Given a sorted linked list, delete all duplicates such that each element appear only once.For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.分析删除链表中重复元素结点。
该题目本质很简单,只需一次遍...
分类:
其他 时间:
2015-08-20 13:06:35
收藏:
0 评论:
0 赞:
0 阅读:
211
1.bootstrap的插件都依赖于jquery,所有jquery要在bootstrap前加载。 //html 5
//bootstrap不支持ie的兼容模式,所以这行代码是让ie运行最新的渲染模式
<meta http-equiv="X-UA-Co...
分类:
其他 时间:
2015-08-20 13:05:46
收藏:
0 评论:
0 赞:
0 阅读:
325
一,题意:
给你一个全为0的N * N的矩阵,对这个矩阵有两个操作(对于矩阵只有两个状态0,1)
(1):“C x1,y1,x2,y2” 就是将左上角为x1,y1,右下角为x2,y2,的这个矩阵内的数字全部翻转。
(2):“Q x1 y1” 输出a[x1][y1]的值。
二,解析:
该我主要应用令二位的树状数组,一个是行,一个是列。
三,代码:
#include
#inclu...
分类:
其他 时间:
2015-08-20 13:05:17
收藏:
0 评论:
0 赞:
0 阅读:
196
??
当一个Activity被加载创建的时候经历一下三个步骤
onCreate
onStart
onResume
当一个界面对用户可见,但是不能进行相关操作时,这个界面就处在 onPause的状态
当一个界面处在对用户完全不可见的状态,该界面就处于onStop的状态 onPause -->onStop
onCreate()onDestroy()
onStart()onStop()
...
分类:
其他 时间:
2015-08-20 13:05:06
收藏:
0 评论:
0 赞:
0 阅读:
294
#include
#include
#include
using namespace std;
int ans[6],n;
void dfs(int cnt)
{
int i,j;
if(cnt==n) {
for(i=0;i<n;i++) if(ans[i]) cout<<i<<" ";
cout<<endl;
return ;
}
ans[cnt]=1;
dfs(cnt...
分类:
其他 时间:
2015-08-20 13:04:17
收藏:
0 评论:
0 赞:
0 阅读:
138
http://poj.org/problem?id=3259
Description
While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that...
分类:
其他 时间:
2015-08-20 13:04:05
收藏:
0 评论:
0 赞:
0 阅读:
176
1、木马控制及通信方法包括:双管道,端口重用,反弹技术,Hook技术,今天重点引用介绍一下hook的用法,hook信息后可以将结果发送到hacker邮箱等,实现攻击的目的。
转自:http://hi.baidu.com/mousetopshow/item/a951102d679f6e8f9c63d1b0
钩子能截获系统并得理发送给其它应用程序的消息,能完成一般程序无法完成的功能。掌...
分类:
其他 时间:
2015-08-20 13:03:46
收藏:
0 评论:
0 赞:
0 阅读:
352