Filter 是一个代码片段,被配置用来在一个控制器的动作执行之前/后执行. 例如, an access control filter 可被执行以确保在执行请求的 action 之前已经过验证; 一个 performance filter 可被用来衡量此 action 执行花费的时间.一个 acti...
分类:
其他 时间:
2015-12-18 09:09:03
收藏:
0 评论:
0 赞:
0 阅读:
158
题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=10294【思路】 强连通分量。 求出bcc后,缩点形成DAG,设DAG上入度为0的点数为a 出度为0的点数为b,则ans=max(a,b) (互相到达,首尾相接),需要...
分类:
其他 时间:
2015-12-18 09:07:53
收藏:
0 评论:
0 赞:
0 阅读:
130
TCP是一个面向连接的协议。不管哪一方向还有一方发送数据之前。都必须在两方之间建立一条连接。这样的两端间连接的建立与无连接协议UDP不同。UDP向还有一端发送数据报时,无需不论什么预告的握手。1.建立连接的协议(3次握手)1)请求端发送一个SYN段指明client打算连接的serverport,以及...
分类:
其他 时间:
2015-12-18 09:06:53
收藏:
0 评论:
0 赞:
0 阅读:
163
简单题Ugly NumberMy SubmissionsQuestionTotal Accepted:32635Total Submissions:94009Difficulty:EasyWrite a program to check whether a given number is an ug...
分类:
其他 时间:
2015-12-18 09:06:43
收藏:
0 评论:
0 赞:
0 阅读:
204
#import 与 #include区别include完成头文件的导入,可能会导致头文件的相互引用和函数或变量的重复定义 为了解决这个问题 我们必须这样做 #ifndef Student_h #define Student_h //方法的声明 #endifimport不仅完...
分类:
其他 时间:
2015-12-18 09:06:13
收藏:
0 评论:
0 赞:
0 阅读:
154
这是我听过最接地气的致词了亲爱的同学们:今天,你们最终毕业了!看着你们高兴地准备离开。像父母看着孩子就要远行,虽说有些伤感,但很多其它的是高兴。感谢你们通过多年的努力,造就了自己,同一时候也使母校添加了些许的成就感!更感谢各位家长和朋友们远道而来,共同见证孩子们长大了!人生总有一些事情会被牢记。滑动...
分类:
其他 时间:
2015-12-18 09:05:03
收藏:
0 评论:
0 赞:
0 阅读:
137
Holding Bin-Laden Captive!Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15501Accepted Submission...
分类:
其他 时间:
2015-12-18 09:04:53
收藏:
0 评论:
0 赞:
0 阅读:
138
Maximum Subarray DifferenceGiven an array with integers.Find two non-overlapping subarrays A and B, which |SUM(A) - SUM(B)| is the largest.Return the ...
分类:
其他 时间:
2015-12-18 08:00:33
收藏:
0 评论:
0 赞:
0 阅读:
249
题目:http://www.lydsy.com/JudgeOnline/problem.php?id=2744最大团是一个np问题。。对于本题,做它的逆问题,建反图做最大独立集。对于A最多取出两个点,枚举一下。对于B,B是一个二分图。注意用时间戳加快速度,还有就是注意一下取反的判定(||取反当然是&...
分类:
其他 时间:
2015-12-18 08:00:13
收藏:
0 评论:
0 赞:
0 阅读:
264
k SumGiven n distinct positive integers, integer k (k <= n) and a number target.Find k numbers where sum is target. Calculate how many solutions there...
分类:
其他 时间:
2015-12-18 08:00:03
收藏:
0 评论:
0 赞:
0 阅读:
127
好久没上这个51cto网站了。写写曾经的感悟。一是交换机的体会。真是个交换场所,可以各交换各的数据。具体应用就是在有两个网络都要工作的环境,分别设置各自的参数,它们就会各自自动去完成数据交换工作。工作中有两个网络:一个是互联网,要自动获取ip;另一个是专网,手动指..
分类:
其他 时间:
2015-12-18 06:57:13
收藏:
0 评论:
0 赞:
0 阅读:
186
今天解决的一个问题,记录一下,先用文字记录下,有时间再用代码还原下。响应式网站中,导航div包含的点击按钮下方出现菜单,无法控制高度(max-height控制百分比不行),后用js实现。是否不用js可以有更好方法?(之后补充)js代码如下function redirectpage() { //var...
分类:
其他 时间:
2015-12-18 06:54:43
收藏:
0 评论:
0 赞:
0 阅读:
200
昨天花了一天时间看了李涛的视频《高手之路》入门的24集,累得连写工作日报的力气都没了,19点就睡。今天4点起来,补一下记录。photoshop是个位图处理工具(别的花里胡哨的功能忽略)——位图指的是若干像素组成的图片。处理包含两件事:选择目标,将目标做改变。photoshop工程的基本模型:1.将一...
分类:
其他 时间:
2015-12-18 06:54:33
收藏:
0 评论:
0 赞:
0 阅读:
207
Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjac...
分类:
其他 时间:
2015-12-18 06:54:03
收藏:
0 评论:
0 赞:
0 阅读:
453
下载安装pict33.msi,网址http://vdisk.weibo.com/s/d6k2tcgXDa7Eq安装完后找到文件pict.exe所在目录:C:\Program Files (x86)\PICT在C:\Program Files (x86)\PICT目录下新建一个txt文本,把参数填入t...
分类:
其他 时间:
2015-12-18 06:53:53
收藏:
0 评论:
0 赞:
0 阅读:
247
Delete DigitsGiven string A representative a positive integer which has N digits, remove any k digits of the number, the remaining digits are arranged...
分类:
其他 时间:
2015-12-18 06:53:23
收藏:
0 评论:
0 赞:
0 阅读:
233
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:
其他 时间:
2015-12-18 06:53:03
收藏:
0 评论:
0 赞:
0 阅读:
220
/*拓扑序列变形之poj1094SortingItAllOut 变形: 在每消去唯一一个入度为0的点后,只剩下唯一一个入度为0的点。 这样获得的n个点才是排序好的。*/ 1 #include 2 #include 3 #include 4 #include 5 #include ...
分类:
其他 时间:
2015-12-18 06:52:43
收藏:
0 评论:
0 赞:
0 阅读:
268
Maximum Subarray IIGiven an array of integers, find two non-overlapping subarrays which have the largest sum. The number in each subarray should be co...
分类:
其他 时间:
2015-12-18 06:51:13
收藏:
0 评论:
0 赞:
0 阅读:
296
指针变量:专门存放内存地址的一种变量 听说C因为指针而强大一段代码来解释 指针 *指针 &指针 &指向变量 的关系 1 /* 2 * 返回指针所指向内存地址中存放的值 它是单目运算符 也称作指针运算符 3 & 返回变量所在的内存地址 它是单目运算符 也称作 取地址符 4 注意:它们的优先...
分类:
其他 时间:
2015-12-18 06:50:53
收藏:
0 评论:
0 赞:
0 阅读:
212