码迷,mamicode.com
首页 > 其他好文
【USACO 2.2.1】序言页码
【题目描述】一类书的序言是以罗马数字标页码的。传统罗马数字用单个字母表示特定的数值,以下是标准数字表:I 1 L 50 M 1000V 5 C 100X 10 D 500最多3个同样的可以表示为10n的数字(I,X,C,M)可以连续放在一起,表示它们的和:III=3CCC=300可表示为5x1...
分类:其他好文   时间:2014-06-21 06:54:24    阅读次数:310
Leetcode:Combination Sum
Description:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesame...
分类:其他好文   时间:2014-06-21 06:55:48    阅读次数:200
对于shell脚本参数获取时的一点小技巧
问题如下:根据脚本参数的个数$#进行一个循环,在依次输出每个参数$1 $2 $3......我有一个循环变量i$i 取到这时的i为1,我想使用这个1再去调用$1,也是就是打印出第一个参数就是$($i)的意思来取到第几个参数,当然$($i)是不好用的当时纠结了好久,最后上百度提问,两位高手给出了答案....
分类:其他好文   时间:2014-06-21 06:56:25    阅读次数:192
SASS+COMPASS 自适应 学习笔记
来源 http://snugug.github.io/RWD-with-Sass-Compass/#/ 1 安装 COMPASS 扩展 安装 方式 gem 'extension', '~>X.Y.Z' 命令行安装require '{extension}'@import '{extension}'; ...
分类:其他好文   时间:2014-06-21 06:56:58    阅读次数:366
http数据流 gzip解压方法分析
gzip压缩的http数据流都包含 “Content-Encoding: gzip\r\n\r\n” ;紧跟其后的是压缩后的数据长度,占三个字节,然后是 \r\n ,占两个字节;再往后就是压缩数据了,可以直接将 压缩数据 copy到文件里用gz解压缩软件可以直接解压缩。在代码中只需要调用对应的解压缩...
分类:其他好文   时间:2014-06-21 06:57:38    阅读次数:840
[LeetCode] Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2014-06-21 06:58:22    阅读次数:186
批量插入实体类转化DataTable
/// /// 根据实体类得到表结构 /// /// 实体类 /// private DataTable CreateData(T model) { DataTable dataTable...
分类:其他好文   时间:2014-06-21 06:59:40    阅读次数:188
一个简单的四则运算
这是一道笔试题,用c或c++编程实现+,-,*,/四种运算符的四则运算,运算式存放在一个字符数组中char str[]。如给定字符数组 char str[] = "3+2*5", 那么输出结果为13./*************************************************...
分类:其他好文   时间:2014-06-21 07:00:17    阅读次数:218
初始化的一些问题(Vector使用)
1 import java.util.Vector; 2 import java.util.Iterator; 3 import java.util.Arrays; 4 import java.util.ArrayList; 5 public class VectorDemo{ 6 publ...
分类:其他好文   时间:2014-06-21 07:01:27    阅读次数:176
leetcode - Balanced Binary Tree
题目:Balanced Binary TreeGiven a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary ...
分类:其他好文   时间:2014-06-21 07:03:28    阅读次数:249
Leetcode:Triangle 三角形塔最小路径和
Triangle:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, give...
分类:其他好文   时间:2014-06-21 07:02:07    阅读次数:203
BigInteger in Cpp (造轮子大法第一波) 未完成版本
游荡知乎这么久,甚是仰慕V神。遂开始造轮子之路,由于新手实力较菜。顾从简单的大整数的入门。功能实现分析:1. 能用字符串, 长整型(long long or _int64)构造出此BigInteger.2. 具有正负数之分(整这个整了好一会)3. 实现基本运算 (c...
分类:其他好文   时间:2014-06-21 07:04:09    阅读次数:213
UITableView 如何展示数据
如果想要在UITableView中添加数据,需要一个数据源(dateSource)来显示数据1.首先添加数据源@interface PPViewController () 2.遵守协议,实现数据源#pragma mark - 数据源//一共有多少组数据- (NSInteger)numberOfSec...
分类:其他好文   时间:2014-06-21 07:04:54    阅读次数:195
svn用法
SVN安装与启动服务1.下载相应匹配版本的TortoiseSVN(客户端)和Subversion(客户端),安装完毕之后。2.配置相关文件。 选择TortoiseSVN-->create responsity here,创建一个仓库。里面有三个主要文件需要配置。 将serversvn.php里面的p...
分类:其他好文   时间:2014-06-21 07:06:45    阅读次数:242
[2012山东省第三届ACM大学生程序设计竞赛]——n a^o7 !
n a^o7 !题目:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2413Time Limit: 1000MS Memory limit: 65536K题目描写叙述All brave and intel...
分类:其他好文   时间:2014-06-21 07:11:15    阅读次数:255
HDU 1010
经典搜索 1 #include 2 #include 3 using namespace std; 4 5 const int MAX=10; 6 7 int step[MAX][MAX]; 8 char maze[MAX][MAX]; 9 int n,m,t;10 struct {11 ...
分类:其他好文   时间:2014-06-21 07:12:00    阅读次数:218
说说我的项目(1)——项目组减员
我这个项目经理是在这个项目换了至少三个甚至更多的项目经理后才当上的,三个多月前我接手的时候,项目已经不存在成本控制之内的东西了,我的任务就是带着四个队友保证项目能在六月份验收。我给大家安排任务,给大家做效益,负责与客户、领导等等项目干系人沟通,总之除了成本控制以外的事我都干。
分类:其他好文   时间:2014-06-21 07:12:36    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!