码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
hdu 3652 最大流入门
明天再拍一遍 1 #include 2 #include 3 using namespace std; 4 const int N = 210; 5 const int INF = 0x7FFFFFFF; 6 int n,m,map[N][N],path[N],flow[N],start,end.....
分类:其他好文   时间:2015-02-07 10:13:30    阅读次数:98
纯Lua实现的位操作,识货的拿去
ZZMathBit = {} function ZZMathBit.__andBit(left,right) return (left == 1 and right == 1) and 1 or 0 end function ZZMathBit.__orBit(left, right) return (left == 1 or right == 1) and 1 or...
分类:其他好文   时间:2015-02-07 01:43:31    阅读次数:696
【转】Velocity 语法
一、基本语法 1、"#"用来标识Velocity的脚本语句,包括#set、#if 、#else、#end、#foreach、#end、#iinclude、#parse、#macro等; 如: #if($i...
分类:其他好文   时间:2015-02-06 21:44:59    阅读次数:164
七周七语言——Erlang第二天自习
键值对 题目:考虑包含键-值元组的列表,如[{erlang, “a functinal language”}, {ruby, “an OO language”}]。写一个函数,接受列表和键为参数,返回该键对应的值。 get_value(Map, Key) -> element(2, hd(lists:dropwhile(fun({K, _})-> Key /= K end, Map) +...
分类:编程语言   时间:2015-02-06 20:31:23    阅读次数:228
HDU 1000 A+B Problem C/C++
Problem DescriptionCalculateA + B.InputEach line will contain two integersAandB. Process to end of file.OutputFor each case, outputA + Bin one line.Sa...
分类:编程语言   时间:2015-02-06 20:24:04    阅读次数:204
远程桌面修改当前登陆密码
有时候我们需要远程桌面去修改登陆密码。但是在远程桌面的时候无法通过Ctrl+Alt+Del来显示修改密码页面。那我们怎么修改密码哪?其实我们很简单的就能把改页面调出。如图:我们把远程桌面全屏,输入Ctrl+Alt+End即可!
分类:其他好文   时间:2015-02-06 19:01:29    阅读次数:366
【BZOJ】1406: [AHOI2007]密码箱
题意:求$0using namespace std;typedef long long ll;set s;int main() { ll n; scanf("%lld", &n); for(int i=1; i*i::iterator it=s.begin(); it!=s.end(); ++it)...
分类:其他好文   时间:2015-02-06 18:44:09    阅读次数:187
hdu 1394 Minimum Inversion Number 归并求逆序数
The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj. For a given sequence of numbers a1, a2, ..., an, if we move the first m >= 0 numbers to the end of the seqence, we will obtain ...
分类:其他好文   时间:2015-02-06 15:03:24    阅读次数:126
[LeetCode] Remove Nth Node From End of List
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:其他好文   时间:2015-02-06 14:41:52    阅读次数:175
Second glance in Go
Github上的"the way to Go"翻譯有時候真讓人搞不懂,我經常會暈,比如如果需要申明一个在外部定义的函数,你只需要给出函数名与函数签名,不需要给出函数体:func flushICache(begin, end uintptr) // implemented externally什麼意思...
分类:其他好文   时间:2015-02-06 14:31:45    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!