生成字典续序列。
//
// main.cpp
// 10098_1
//
// Created by Fangpin on 15/3/7.
// Copyright (c) 2015年 FangPin. All rights reserved.
//
#include
#include
#include
#include
using namespace std;
char s...
分类:
其他 时间:
2015-03-07 15:43:29
收藏:
0 评论:
0 赞:
0 阅读:
217
dom4j解析:(功能强大,容易使用。需要dom4j的jar包)
结合文档开发。
XPath提取xml文档信息
XPath语法:
/...
分类:
其他 时间:
2015-03-07 15:43:18
收藏:
0 评论:
0 赞:
0 阅读:
280
Foxmail+四象限
一、【Foxmail简介】
相信很多人都使用或者了解过Foxmail,我觉得它作为一款优秀的软件,其中一个很重要的原因是它体现了“大道至简”的软件设计理念。
二、【前期准备】
步骤1:建立文件夹
[注意]如果您工作或学习使用的电脑不固定,建议您建立网络文件夹。图中是本地文件夹,比较适合不经常更换电脑的情况。
步骤2:建立邮件模...
分类:
其他 时间:
2015-03-07 15:42:58
收藏:
0 评论:
0 赞:
0 阅读:
365
A angry_birds_again_and_again
http://www.sdutacm.org/sdutoj/problem.php?action=showproblem&problemid=2877
数学题,求抛物线和直线围成的面积,用积分来做。
设方程 y=ax^2+bx+c ,图中曲线经过原点,所以c=0.
对方程求导 y'=2ax+b , y'代表斜率,那么原点(0,...
分类:
其他 时间:
2015-03-07 15:42:48
收藏:
0 评论:
0 赞:
0 阅读:
242
/*
题目大意:
1、根据回答问题的数目,决定学生的分数;
2、回答题目数相同者,根据回答的时间的快慢,决定学生的分数;
3、回答题目数相同者,只有一个人可以获得95,85,75,65的分数,其他人只能为90,80,70,60
*/
# include
struct Student /*结构体,用于存储输入的数据*/
{
int solved; /*解决问题的数目*...
分类:
其他 时间:
2015-03-07 15:42:38
收藏:
0 评论:
0 赞:
0 阅读:
255
Power Strings
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 34716
Accepted: 14367
Description
Given two strings a and b we define a*b to be their conca...
分类:
其他 时间:
2015-03-07 15:42:08
收藏:
0 评论:
0 赞:
0 阅读:
203
题意还是很简单的,我们可以用dfs穷举出所有可能的名字;重要的是查询名字是不是合法,开始的时候用的map,没想到超时了;于是后面用的字典树,其实应该也可以用二分进行查找。另外好像USACO对内存限制很严,数组不能开太大。代码如下:/*
ID: 15674811
LANG: C++
TASK: namenum
*/#include
#include
#include...
分类:
其他 时间:
2015-03-07 15:41:48
收藏:
0 评论:
0 赞:
0 阅读:
260
在项目中使用Handler时,会出现警告提示,也会在Problems中进行统计和显示,如下图:
把鼠标放在,就会提示This Handler class should be static or leaks might occur,如下:
@SuppressLint("HandlerLeak")
private Handler mHandler = new Handler(...
分类:
其他 时间:
2015-03-07 15:41:38
收藏:
0 评论:
0 赞:
0 阅读:
279
Given s1, s2, s3, find whether s3 is formed by the interleaving of
s1 and s2.
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", return...
分类:
其他 时间:
2015-03-07 15:40:19
收藏:
0 评论:
0 赞:
0 阅读:
196
#1121 : 二分图一?二分图判定Time Limit:10000msCase Time Limit:1000msMemory Limit:256MB描述大家好,我是小Hi和小Ho的小伙伴Nettle,从这个星期开始由我来完成我们的Weekly。新年回家,又到了一年一度大龄剩男剩女的相亲时间。Ne...
分类:
其他 时间:
2015-03-07 15:39:28
收藏:
0 评论:
0 赞:
0 阅读:
710
Balanced Binary Tree问题:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary ...
分类:
其他 时间:
2015-03-07 15:39:18
收藏:
0 评论:
0 赞:
0 阅读:
174
iOS7 Beta已经发布了,迫不及待地下载了iOS 7及Xcode 5并体验了一下。先做一个简单的Hello World看看都有哪些变化吧。1. 启动Xcode5-DP;2. 从菜单选择File-New Project...,弹出如下窗口:注意,在此多了一个SpriteKit Game的模板,暂时...
分类:
其他 时间:
2015-03-07 15:38:38
收藏:
0 评论:
0 赞:
0 阅读:
211
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:
其他 时间:
2015-03-07 15:38:08
收藏:
0 评论:
0 赞:
0 阅读:
109
我国“石头剪刀布”研究获麻省理工大奖http://tech.sina.com.cn/d/v/2015-01-22/doc-iawzunex9292891.shtml在一定情况下: 赢了会更多选择保留刚刚获胜的策略; 输则更多按照“石头剪刀布”的名称顺序变动; 而平的则按照 “石头布剪刀”这样的...
分类:
其他 时间:
2015-03-07 15:37:58
收藏:
0 评论:
0 赞:
0 阅读:
173
B - Alice and Bob Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription Alice and Bob's game never ends. Today, they introd....
分类:
其他 时间:
2015-03-07 15:37:48
收藏:
0 评论:
0 赞:
0 阅读:
245
描述:有的时候,回车时,不想触发 页面上的保存按钮的事件。有一种最简单的解决 方法:一,把form增加一个不用的默认button二,页面隐藏此按钮
分类:
其他 时间:
2015-03-07 15:37:28
收藏:
0 评论:
0 赞:
0 阅读:
175
Rotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4]. 1 public class ...
分类:
其他 时间:
2015-03-07 15:37:18
收藏:
0 评论:
0 赞:
0 阅读:
120
Description描述Inspired by a "Little Bishops" problem, Petya now wants to solve problem for rooks.A rook is a piece used in the game of chess which is p...
分类:
其他 时间:
2015-03-07 15:36:48
收藏:
0 评论:
0 赞:
0 阅读:
261
Openssl目录名以及功能描述目录名功能描述Crypto存放OpenSSL所有加密算法源码文件和相关标注如X.509源码文件,是OpenSSL中最重要的目录,包含了OpenSSL密码算法库的所有内容。SSL存放OpenSSL中SSL协议各个版本和TLS 1.0协议源码文件,包含了OpenSSL协议...
分类:
其他 时间:
2015-03-07 15:36:38
收藏:
0 评论:
0 赞:
0 阅读:
345
Best Time to Buy and Sell Stock问题:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to co...
分类:
其他 时间:
2015-03-07 15:36:18
收藏:
0 评论:
0 赞:
0 阅读:
173