码迷,mamicode.com
首页 >  
搜索关键字:zoj 3686 a simple tr    ( 14369个结果
shell脚本 ----每天学一点shell
tr(translate缩写)主要用于删除文件中的控制字符,或进行字符转换。语法:tr [–c/d/s/t] [SET1] [SET2]SET1: 字符集1SET2:字符集2-c:complement,用SET2替换SET1中没有包含的字符-d:delete,删除SET1中所有的字符,不转换-s: ...
分类:其他好文   时间:2014-07-19 17:36:05    阅读次数:214
ZOJ - 1093 Monkey and Banana
DAG嵌套模型,状态方程由1改成高度就行。 1 #include 2 #include 3 #include 4 #define doumax(a,b) (a>b?a:b) 5 const int maxn=100; 6 int mat[maxn][maxn],dp[maxn],n,a[35][5]...
分类:其他好文   时间:2014-07-19 15:04:56    阅读次数:234
poj 1094 / zoj 1060 Sorting It All Out
Sorting It All OutTime Limit:1000MSMemory Limit:10000KTotal Submissions:26876Accepted:9271DescriptionAn ascending sorted sequence of distinct values i...
分类:其他好文   时间:2014-07-19 15:03:58    阅读次数:278
REST Client – simple DSL for accessing HTTP and REST resources
https://github.com/rest-client/rest-clienthttps://github.com/jnunemaker/httpartyhttp://ruby-doc.org/stdlib-2.1.2/libdoc/net/http/rdoc/Net/HTTP.htmlhtt...
分类:数据库   时间:2014-07-19 09:30:02    阅读次数:398
类型转换总结
1、将任意类型转化成字符串类型        ToString(); 2、将字符串类型转换成任意类型        Parse()或者TryParse(),重点说一下TryParse(),先看实例,了解TryParse()的用法 //使用TryParse()进行类型转换 string tryStr = "10aa"; int result; bool b = int.TryParse(tr...
分类:其他好文   时间:2014-07-19 02:37:16    阅读次数:192
A Simple Example About Privileged Methods in JavaScript
Douglas Crockford classified the "class methods" in JavaScript into three types: private, privileged and public. Public methods have an obvious meaning: they can be accessed by the public. Priv...
分类:编程语言   时间:2014-07-19 02:31:05    阅读次数:282
ZOJ 3430 Pizza schedule
题意: 给你一串编码后的单词和一篇文章 问 编码前文章中出现了几个单词 思路: 根据题意反编码 然后AC自动机跑一下 转化字符时候注意长度 因为可能转换出'\0' 所以转完后再求strlen会出错 注意 ZOJ的char默认是signed char 所以转码后要么存在unsigned char数组里 要么用int数组存 否则会错的!! 因为signed char无法表示128+的数字!!...
分类:其他好文   时间:2014-07-19 02:26:26    阅读次数:236
LeetCode "Search Insert Position"
A simple 1D searching problem. Binary search of course.But.. STL has already done it for you:class Solution {public: int searchInsert(int A[], int ...
分类:其他好文   时间:2014-07-18 18:35:41    阅读次数:205
poj3468 A Simple Problem with Integers
DescriptionYou haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each ...
分类:其他好文   时间:2014-07-18 18:22:11    阅读次数:263
VBA读取文件夹下所有文件夹及文件内容,并以树形结构展示
Const TR_LEVEL_MARK = "+"Const TR_COL_INDEX = "A"Const TR_COL_LEVEL = "E"Const TR_COL_NAME = "C"Const TR_COL_COUNT = "D"Const TR_COL_TREE_START = "F"C...
分类:其他好文   时间:2014-07-18 14:16:07    阅读次数:414
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!