首页 > 其他
hdu 4472 dp
http://acm.hdu.edu.cn/showproblem.php?pid=4472第一个本能的找规律。第二直觉 树被分成的子树,然后,复发或DP然后发现不。然后,他们发现,他们并没有阅读题,。。,dp[i]=segma(dp[j] | (i-1)%j==0)#include #includ...
分类:其他   时间:2015-09-10 15:50:14    收藏:0  评论:0  赞:0  阅读:197
【stanford 机器学习】学习笔记(1)--单变量线性回归
课程来自斯坦福大学吴恩达教授 machine learning:https://www.coursera.org/learn/machine-learning/home/welcome1) Model representation(模型表示)回到第一课中的房屋价格预测问题, 首先它是一个有监督学习的...
分类:其他   时间:2015-09-10 15:49:54    收藏:0  评论:0  赞:0  阅读:287
E - Phone List(字典序,string类型使用)
DescriptionGiven a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone cata...
分类:其他   时间:2015-09-10 15:48:54    收藏:0  评论:0  赞:0  阅读:196
[LeetCode]Missing Number
Missing NumberGiven an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=...
分类:其他   时间:2015-09-10 15:48:44    收藏:0  评论:0  赞:0  阅读:122
mybatis在xml文件中处理大于号小于号的方法
一、转义:< 大于号 & & 和 ' ’ 单引号 ...
分类:其他   时间:2015-09-10 15:48:24    收藏:0  评论:0  赞:0  阅读:131
Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 1 inline int c2n(char c) { 2 switc...
分类:其他   时间:2015-09-10 15:47:54    收藏:0  评论:0  赞:0  阅读:138
4Sum
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ...
分类:其他   时间:2015-09-10 15:47:34    收藏:0  评论:0  赞:0  阅读:146
3Sum Closest
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:其他   时间:2015-09-10 15:47:24    收藏:0  评论:0  赞:0  阅读:130
回车提交订单 做法
登 录
分类:其他   时间:2015-09-10 15:46:44    收藏:0  评论:0  赞:0  阅读:256
POJ 2378 Tree Cutting
Tree CuttingTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:237864-bit integer IO format:%lld Java class name:Ma...
分类:其他   时间:2015-09-10 15:46:14    收藏:0  评论:0  赞:0  阅读:96
单例模式ARC和非ARC
ARC环境下的单例模式:static id _instance = nil; + (id)allocWithZone:(struct _NSZone *)zone { if (_instance == nil) { static dispatch_once_...
分类:其他   时间:2015-09-10 15:46:04    收藏:0  评论:0  赞:0  阅读:253
CocoaPods安装和使用教程
CocoaPods安装和使用教程Code4App 原创文章。转载请注明出处:http://code4app.com/article/cocoapods-install-usage目录CocoaPods是什么?如何下载和安装CocoaPods?如何使用CocoaPods?场景1:利用CocoaPods...
分类:其他   时间:2015-09-10 15:45:54    收藏:0  评论:0  赞:0  阅读:181
Set,List,Map,Vector,ArrayList的区别(转)
JAVA的容器---List,Map,SetCollection├List│├LinkedList│├ArrayList│└Vector│ └Stack└SetMap├Hashtable├HashMap└WeakHashMapCollection接口 Collection是最基本的集合接口,一个C....
分类:其他   时间:2015-09-10 15:45:34    收藏:0  评论:0  赞:0  阅读:102
[LeetCode] Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:其他   时间:2015-09-10 15:45:24    收藏:0  评论:0  赞:0  阅读:134
input清楚阴影 number属性
IOS,input出现阴影:input[type="text"],input[type="email"],input[type="search"],input[type="number"],input[type="password"] { -webkit-appearance: none; /...
分类:其他   时间:2015-09-10 15:45:04    收藏:0  评论:0  赞:0  阅读:285
grep的-A-B-选项详解(转)
grep的-A-B-选项详解(转)[@more@]grep能找出带有关键字的行,但是工作中有时需要找出该行前后的行,下面是解释1. grep -A1 keyword filename找出filename中带有keyword的行,输出中除显示该行外,还显示之后的一行(After 1)2. grep -...
分类:其他   时间:2015-09-10 15:44:54    收藏:0  评论:0  赞:0  阅读:262
Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999. 1 string intToRoman(int num) { 2 ...
分类:其他   时间:2015-09-10 15:44:44    收藏:0  评论:0  赞:0  阅读:277
大数模板 (C ++)
上次BC遇到一个大数题目,没有大数模板和不会使用JAVA的同学们GG了,赛后从队友哪里骗出大数模板。2333333,真的炒鸡nice(就是有点长),贴出来分享一下好辣。 1 //可以处理字符串前导零 2 #include 3 #include 4 #include 5 #incl...
分类:其他   时间:2015-09-10 15:44:34    收藏:0  评论:0  赞:0  阅读:272
ZOJ 3201 Tree of Tree
Tree of TreeTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onZJU. Original ID:320164-bit integer IO format:%lld Java class name:Ma...
分类:其他   时间:2015-09-10 15:44:24    收藏:0  评论:0  赞:0  阅读:312
Valid Parentheses
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他   时间:2015-09-10 15:43:54    收藏:0  评论:0  赞:0  阅读:148
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!