题目:给定一个数,,求它最少可以用多少个包含字符串"61"的数字来表示,并输出这些数。
分析:对于大于6161的任何一个整数,都有如下表示
对于小于1616的数,直接背包即可。
代码:
#include
#include
#include
using namespace std;
typedef long long LL;
const...
分类:
其他 时间:
2014-06-02 10:35:56
收藏:
0 评论:
0 赞:
0 阅读:
275
概述JBoss 7/WildFly 以 domain 模式启动时会启动多个 JVM,例如如下通过启动脚本启动 domain 模式:./domain.sh启动后我们查看进程:[kylin@localhost tdump]$ jps -l
23655 /home/kylin/work/eap/jboss-eap-6.1/jboss-modules.jar
23671 /home/kylin/work/...
分类:
其他 时间:
2014-06-02 10:32:05
收藏:
0 评论:
0 赞:
0 阅读:
461
昨天打 CF又跪了,最近睡不好睡不好睡不好~感觉整个人都累傻了,根本无办法写下去,仅仅写了一题签到题就跪了orz..从未试过这么悲剧。
今天早上凭着我的意念(“怨念”),七点又起来了!我已经连续好多天七点自动起来(不是自然醒,是意念,是意念....),刷啊刷啊刷dp.
今天刷的是昨天的加强版,实际上就多了一个for循环,和做高度处理,不直到是不是正解( ╮(╯▽╰)╭ ),但是AC就好了.....
分类:
其他 时间:
2014-06-02 11:00:09
收藏:
0 评论:
0 赞:
0 阅读:
442
这里要用到date函数的第三种形式,下面是获得当前日期(set 'today (date (date-value) 0 "%Y%m%d"))
(date-value) 返回的是1970年0点累计的秒数,作为date函数的地一个参数第二个参数是偏移的分钟,0表示没有偏移,就是现在。 这个参数主要用来做时区转换第三个参数定义日期格式,参考下表:formatdescription%aabbreviate...
分类:
其他 时间:
2014-06-02 10:57:19
收藏:
0 评论:
0 赞:
0 阅读:
344
本题要求根据火车的出发时间和达到时间,编写程序计算整个旅途所用的时间。
输入格式:
输入在一行中给出2个4位正整数,其间以空格分隔,分别表示火车的出发时间和到达时间。每个时间的格式为2位小时数(00-23)和2位分钟数(00-59),假设出发和到达在同一天内。
输出格式:
在一行输出该旅途所用的时间,格式为“hh:mm”,其中hh为2位小时数、mm为2位分钟数。
输入样例...
分类:
其他 时间:
2014-06-02 10:59:29
收藏:
0 评论:
0 赞:
0 阅读:
1350
在学习计算机组成原理中的指令系统的时候,我们会遇到一个非常经典的技术流水作业。人们一般称这是一种技术,其实我更喜欢把它称为一种思想,它就是我们生活中工厂里流水作业思想在计算机中的运用。...
分类:
其他 时间:
2014-06-02 10:30:54
收藏:
0 评论:
0 赞:
0 阅读:
490
【题目】
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 false.
【题意】
给定字符串s1,s2,s3, 判断s3是不是s1和s2中的字交叉组合...
分类:
其他 时间:
2014-06-02 10:58:44
收藏:
0 评论:
0 赞:
0 阅读:
247
【题目】
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.
The right subtree of a node contains only nodes with ke...
分类:
其他 时间:
2014-06-02 10:30:17
收藏:
0 评论:
0 赞:
0 阅读:
323
Subsets
Total Accepted: 13267 Total
Submissions: 48509My Submissions
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-desc...
分类:
其他 时间:
2014-06-02 10:28:56
收藏:
0 评论:
0 赞:
0 阅读:
368
【题目】
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n) space is pretty straight forward. Could you devise a constant space solution?
confused what "{1,#,2,3}" ...
分类:
其他 时间:
2014-06-02 10:38:38
收藏:
0 评论:
0 赞:
0 阅读:
318
【题目】
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
【题意】
判断了两个二叉树是否相等
【思路】
递归...
分类:
其他 时间:
2014-06-02 11:03:25
收藏:
0 评论:
0 赞:
0 阅读:
303
【题目】
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the following is not:
1
/ 2 2
\ 3 3
No...
分类:
其他 时间:
2014-06-02 10:56:34
收藏:
0 评论:
0 赞:
0 阅读:
276
// OpenGL.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include
#include
#include
using namespace std;
void init(void)
{
glClearColor(1.0,1.0,1.0,1.0);
glClear(GL_COLOR_BUFFER_BIT);
glShadeMod...
分类:
其他 时间:
2014-06-02 11:02:39
收藏:
0 评论:
0 赞:
0 阅读:
359
问题描述
求 1+2+ … +n ,要求不能使用乘除法、 for 、 while 、 if 、 else
、 switch 、 case 等关键字以及条件判断语句。
实际意义不大,题目涉及的知识还是不错的!
方法1
用构造函数求解。
#include
using namespace std;
class Plus
{
public:
Plu...
分类:
其他 时间:
2014-06-02 10:29:39
收藏:
0 评论:
0 赞:
0 阅读:
339
2014-06-02
BaoXinjian一、摘要实现OAF的HGrid的功能二、案例需求:实现OAF的HGrid的功能1. 建立HGrid Regin2. 建立Tree Regin
(1). Tree Node (2). Tree Members3. 建立Table Selection - Mul...
分类:
其他 时间:
2014-06-02 10:17:21
收藏:
0 评论:
0 赞:
0 阅读:
999
Agile software developmentAgile software
developmentis a group ofsoftware development methodsbased oniterative and
incremental development, in which r...
分类:
其他 时间:
2014-06-02 10:18:36
收藏:
0 评论:
0 赞:
0 阅读:
385
2014-06-02
BaoXinjian一、摘要实现OAF修改功能Update二、案例需求:实现修改功能1. 建立Update按钮的连接2.设定触发事件为FireAction3.
在SearchInvoiceCO.java中添加如下方法4.建立UpdateInvoicePG5.在UpdateInv...
分类:
其他 时间:
2014-06-02 10:20:31
收藏:
0 评论:
0 赞:
0 阅读:
966
stopGoogleRedirection:http://userscripts.org:8080/scripts/show/186798//
==UserScript==// @name stopGoogleRedirection// @author NLF//...
分类:
其他 时间:
2014-06-02 10:21:08
收藏:
0 评论:
0 赞:
0 阅读:
324
2014-06-02
BaoXinjian一、摘要实现OAF的Poplist功能二、案例需求:实现OAF Poplist功能1. 建立VO,存放Invoice Type的资料2.
建立Item (1).其类型为Poplist (2).修改Item属性,其Picklist的来源为刚才的VO三、案例实现...
分类:
其他 时间:
2014-06-02 10:21:45
收藏:
0 评论:
0 赞:
0 阅读:
904
2014-06-02
BaoXinjian一、摘要实现OAF的删除功能delete二、案例需求:实现删除功能1.建立Delete按钮的连接2. 修改VO,增加按钮3.
在SearchInvoiceCO.java中添加如下方法4.在InvoiceAM中添加如下方法三、案例实现1.建立Delete按钮的...
分类:
其他 时间:
2014-06-02 10:26:22
收藏:
0 评论:
0 赞:
0 阅读:
753