码迷,mamicode.com
首页 > 其他好文
【小提琴】石川绫子演奏合集 之 不要认输
http://www.bilibili.com/video/av672043/index_14.html绫子姐简直美哭~另,在视频下面刷“亩产一千八”的头过来,我给你加个buff。
分类:其他好文   时间:2015-12-04 22:36:36    阅读次数:209
hdu2196 树形dp
想法:对于一棵树,对于任意一个节点,它的最大值可以来自以它为根的子树,也可以来自它的父亲。所以需要考虑二个方向的情况。所以必须考虑2个方向。解法:dp[i][0]保存子树的值,dp[i][1]保存父亲结点方向+dis[i,root];可以先一遍dfs,保存任意点子树的最大值,同时保存任意点取最大值的...
分类:其他好文   时间:2015-12-04 22:36:36    阅读次数:121
leetcode Find the Duplicate Number
题目连接https://leetcode.com/problems/find-the-duplicate-number/Find the Duplicate NumberDescriptionGiven an array nums containing n + 1 integers where ea...
分类:其他好文   时间:2015-12-04 22:36:15    阅读次数:129
系统操作日志设计(转)
前言我们在做企业管理系统时,有多多少少都有对数据的完整性有所要求,比如要求系统不能物理删除记录,要求添加每一条数据时都要有系统记录、或者更新某条数据都需要跟踪到变化的内容、或者删除数据时需要记录谁删除了,何时删除了,以便误删后可以通过系统的XXX功能来恢复误删的数据。我将这种功能称为操作日志为什么要...
分类:其他好文   时间:2015-12-04 22:35:15    阅读次数:228
关于回车直接执行事件的方法
关于回车直接执行事件的方法
分类:其他好文   时间:2015-12-04 22:35:32    阅读次数:147
找出下图的互联网产品实例
分类:其他好文   时间:2015-12-04 22:35:32    阅读次数:149
月老 1215__________________________________________
#include//心累,感觉没法优化了......#includeint a[500010];void wap();int main(){ int n,x; wap(); scanf("%d",&n); while(n--) { scanf("%d",&...
分类:其他好文   时间:2015-12-04 22:36:56    阅读次数:195
Today’s dictation
Title: Islamic state video claims beheading of russian Vacabulary: behead islamic webnesday terrorist humiliated authenticity downing airliner october...
分类:其他好文   时间:2015-12-04 22:36:35    阅读次数:178
for语句练习 阶乘
4的阶乘:4!=1*2*3*4public class g { /** * @param args */ public static void main(String[] args) { int n = 4; // 4!=1*2*3*4 ...
分类:其他好文   时间:2015-12-04 22:34:53    阅读次数:149
PS多形式的部分之间复制“笨办法”
PS剪切页面,有时候你可能会遇到这样的情况:设计改进,但是,我们要具有相同的切片。在此假设,可以直接用于切割片。我们可以节省大量的时间,又分为片。但是,人们一般不会在你的上跨片设计PSD在变化,但是,将再次输出PSD。能够将一个PSD中已经划好的切片拷贝到还有一个PSD上吗?遗憾的是,眼下PS CS...
分类:其他好文   时间:2015-12-04 22:34:35    阅读次数:167
Ugly Number II
题目:Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5...
分类:其他好文   时间:2015-12-04 22:34:42    阅读次数:163
Insertion Sort List
Sort a linked list using insertion sort. /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ stru...
分类:其他好文   时间:2015-12-04 22:33:42    阅读次数:187
leetcdoe Valid Anagram
题目连接https://leetcode.com/problems/valid-anagram/Valid AnagramDescriptionGiven two strings s and t, write a function to determine if t is an anagram of...
分类:其他好文   时间:2015-12-04 22:32:03    阅读次数:199
利用OpacityMask制作打洞效果
利用OpacityMask实现在界面元素中不规则透明
分类:其他好文   时间:2015-12-04 22:31:42    阅读次数:471
cocos2d-x-3.x (7)简单加入文字
老地方改,详见第四节~将HelloWorldScene,cpp里的bool HelloWorld::init(){ if(!Layer::init()) { return false; } Size size = Director::getInstance()->getVisibl...
分类:其他好文   时间:2015-12-04 22:34:06    阅读次数:215
The _imageingft C module is not installed
遇到的问题如图所示,使用的方法:下载地址:http://effbot.org/downloads并没有解决,有人用这样的方法成功了,只能说很遗憾,我并没有成功大神给的解决办法,不要再win平台下使用,有很多坑,换成linux系统,表示很无语,记录一下.
分类:其他好文   时间:2015-12-04 22:32:00    阅读次数:183
最大流isap模板
isap+bfs初始化+栈优化,点的编号从0开始: 1 const int MAXN = 100010; 2 const int MAXM = 400010; 3 const int INF = 0x3f3f3f3f; 4 struct Edge 5 { 6 int to, n...
分类:其他好文   时间:2015-12-04 22:32:38    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!