码迷,mamicode.com
首页 > 2014年06月02日 > 全部分享
HDU1505(HDU1506的加强版)
昨天打 CF又跪了,最近睡不好睡不好睡不好~感觉整个人都累傻了,根本无办法写下去,仅仅写了一题签到题就跪了orz..从未试过这么悲剧。 今天早上凭着我的意念(“怨念”),七点又起来了!我已经连续好多天七点自动起来(不是自然醒,是意念,是意念....),刷啊刷啊刷dp. 今天刷的是昨天的加强版,实际上就多了一个for循环,和做高度处理,不直到是不是正解(  ╮(╯▽╰)╭ ),但是AC就好了.....
分类:其他好文   时间:2014-06-02 10:59:50    阅读次数:220
获取当前日期
这里要用到date函数的第三种形式,下面是获得当前日期(set 'today (date (date-value) 0 "%Y%m%d")) (date-value) 返回的是1970年0点累计的秒数,作为date函数的地一个参数第二个参数是偏移的分钟,0表示没有偏移,就是现在。 这个参数主要用来做时区转换第三个参数定义日期格式,参考下表:formatdescription%aabbreviate...
分类:其他好文   时间:2014-06-02 10:56:56    阅读次数:477
分支-12. 计算火车运行时间(15)
本题要求根据火车的出发时间和达到时间,编写程序计算整个旅途所用的时间。 输入格式: 输入在一行中给出2个4位正整数,其间以空格分隔,分别表示火车的出发时间和到达时间。每个时间的格式为2位小时数(00-23)和2位分钟数(00-59),假设出发和到达在同一天内。 输出格式: 在一行输出该旅途所用的时间,格式为“hh:mm”,其中hh为2位小时数、mm为2位分钟数。 输入样例...
分类:其他好文   时间:2014-06-02 10:59:05    阅读次数:364
大话计算机中的流水作业
在学习计算机组成原理中的指令系统的时候,我们会遇到一个非常经典的技术流水作业。人们一般称这是一种技术,其实我更喜欢把它称为一种思想,它就是我们生活中工厂里流水作业思想在计算机中的运用。...
分类:其他好文   时间:2014-06-02 10:30:34    阅读次数:321
LeetCode: Interleaving String [097]
【题目】 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:24    阅读次数:211
LeetCode: Validate Binary Search Tree [098]
【题目】 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:29:55    阅读次数:257
leetcode-Subsets
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:35    阅读次数:186
LeetCode: Recover Binary Search Tree [099]
【题目】 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:17    阅读次数:246
LeetCode: Same Tree [100]
【题目】 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:03    阅读次数:205
LeetCode: Symmetric Tree [101]
【题目】 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:14    阅读次数:237
OpenGL【2 坐标变换】
// 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:18    阅读次数:282
[Oracle] Insert All的妙用
无条件的插入 Oracle中的insert all是指把同一批数据插入到不同的表中,假如现在有个需求:把t表中的数据分别插入t1,t2,如果你不知道insert all,你可能会使用insert插入2次,如下所示: insert into t1(object_name,object_id) select * from t; insert into t2(object_name,object...
分类:数据库   时间:2014-06-02 10:33:04    阅读次数:318
1+2+3+...+n不能用while、for、if else等实现
问题描述 求 1+2+ … +n ,要求不能使用乘除法、 for 、 while 、 if 、 else 、 switch 、 case 等关键字以及条件判断语句。 实际意义不大,题目涉及的知识还是不错的! 方法1 用构造函数求解。 #include using namespace std; class Plus { public: Plu...
分类:其他好文   时间:2014-06-02 10:29:11    阅读次数:208
OAF_OAF控件HGrid的实现(案列)
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:43    阅读次数:247
SEMAT[软件工程方法和理论 Software Engineering Method and Theory]
Agile software developmentAgile software developmentis a group ofsoftware development methodsbased oniterative and incremental development, in which r...
分类:其他好文   时间:2014-06-02 10:18:52    阅读次数:201
NOKIA Lumia 638
此页面为WP8“NOKIA Lumia 638”应用的发布页面。“NOKIA Lumia 638”是一款收集Lumia638的玩机技巧的WP8程序,更好的帮助Lumia用户理解并使用638。此页面主要记录开发进度、APP发布等情况。-------------------相关进度-----------...
分类:其他好文   时间:2014-06-02 10:18:20    阅读次数:213
树形图控件(附加读取数据库)
树视图控件能够按层次结构组织和管理数据,通常用于显示树状结构数据。 先截个图 : 这个是程序的最终运行结果。其中树节点上的文本文字是从数据库中读取。 下面是程序步骤: (1)新建一个基于对话框的应用程序TreeViewCtrl,在对话框中添加树视图控件。 (2)在类向导中将树视图控件命名为m_tre...
分类:数据库   时间:2014-06-02 10:20:13    阅读次数:395
1410条   上一页 1 ... 17 18 19 20 21 22 23 ... 83 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!