码迷,mamicode.com
首页 > 2015年04月18日 > 全部分享
[BZOJ 1018] [SHOI2008] 堵塞的交通traffic 【线段树维护联通性】
题目链接:BZOJ - 1018题目分析这道题就说明了刷题少,比赛就容易跪..SDOI Round1 Day2 T3 就是与这道题类似的..然而我并没有做过这道题..这道题是线段树维护联通性的经典模型。我们线段树的一个节点表示一个区间的联通性,有 6 个 bool 值,表示这个区间的 4 个角上的点...
分类:移动开发   时间:2015-04-18 01:05:50    阅读次数:234
Class org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.TruePointcut with modifiers "public"
Spring注入Action使用Json错误:org.apache.struts2.json.JSONException:org.apache.struts2.json.JSONException:org.apache.struts2.json.JSONException:org.apache.st...
分类:数据库   时间:2015-04-18 01:03:12    阅读次数:335
内存偏移
1 #include "stdafx.h" 2 3 class A 4 { 5 public: 6 A(){m_a = 1; m_b = 2;} 7 void fun(){printf("%d %d\n", m_a, m_b);} 8 private: 9 int m_a...
分类:其他好文   时间:2015-04-18 01:04:18    阅读次数:217
JQuery的鼠标滚动事件
jQuery(window).height()代表了当前可见区域的大小,而jQuery(document).height()则代表了整个文档的高度,可视具体情况使用. 注意当浏览器窗口大小改变时(如最大化或拉大窗口后) jQuery(window).height() 随之改变,但是jQuery(do...
分类:Web程序   时间:2015-04-18 01:05:25    阅读次数:188
常用数据结构及算法C#实现
常用数据结构及算法C#实现1.冒泡排序、选择排序、插入排序(三种简单非递归排序) 1 int[] waitSort = { 1,0, 12, 13, 14, 5, 6, 7, 8, 9, 10 }; 2 3 //冒泡排序 4 ...
分类:编程语言   时间:2015-04-18 01:02:57    阅读次数:225
jquery,checkbox无法用attr()二次勾选
今晨,漂亮的测试妹妹提了个奇怪的bug,说我一功能checkbox时隐时现,比如第一次打开有勾选,第n次打开可能就不选了。想到与美女有亲密接触机会,马上鸡动起来。经过偶层层抽次剥茧(da da jiang you),终于知道了原因:attr()在二次选中勾选框时,失效。比如,如下HTML页面,一点【...
分类:Web程序   时间:2015-04-18 01:04:36    阅读次数:271
window.onload
1 2 3 4 5 6 12 13 14 15 16 1 2 3 4 5 6 7 8 9 13 14
分类:Windows程序   时间:2015-04-18 01:02:29    阅读次数:179
jQuery 优化
一、选择器性能优化建议1. 总是从#id选择器来继承这是jQuery选择器的一条黄金法则。jQuery选择一个元素最快的方法就是用ID来选择了。$('#content').hide();或者从ID选择器继承来选择多个元素:$('#content p').hide();2. 在class前面使用tag...
分类:Web程序   时间:2015-04-18 01:02:36    阅读次数:139
MAC安裝CocoaPods
前言,鑒於很多人都比較趕時間,有人是為了去應付工作,有人是為了去找妹子,總之,不管你懂不懂,如果你只是想安裝一下,那麼你只需要按照濤叔下面畫黃色的命令複製粘貼到終端順序執行就好了。一、安裝1、Ruby环境搭建1.1查看下当前ruby版本:打开终端输入 ruby -v$ ruby -vlibotaod...
分类:系统相关   时间:2015-04-18 01:03:43    阅读次数:246
As3.0 视频缓冲、下载总结
来源:http://www.cuplayer.com/player/PlayerCodeAs/2012/0913404.html利用NetStream的以下属性:bufferTime — 缓冲区大小。可设置(单位为秒),默认为0.1秒bufferLength — 已进入缓冲区的秒数bufferLen...
分类:其他好文   时间:2015-04-18 01:02:50    阅读次数:400
54. Spiral Matrix
题目:Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3...
分类:其他好文   时间:2015-04-18 01:01:32    阅读次数:147
Topcoder SRM656div1 250 ( 期望DP )
Problem StatementCharlie has N pancakes. He wants to serve some of them for breakfast. We will number the pancakes 0 through N-1. For each i, pancake ...
分类:其他好文   时间:2015-04-18 01:00:11    阅读次数:265
flash 右键菜单隐藏与修改
来源:http://blog.sina.com.cn/s/blog_7264c84401014fmd.htmlimport flash.ui.ContextMenu;import flash.ui.ContextMenuItem;import flash.events.ContextMenuEven...
分类:其他好文   时间:2015-04-18 01:01:50    阅读次数:147
Jquery实现上下移动排序---兰
Insert title here --> 蕙兰建兰寒兰墨兰
分类:移动开发   时间:2015-04-18 01:00:11    阅读次数:240
hdu 1015 Safecracker 水题一枚
题目链接:HDU - 1015=== Op tech briefing, 2002/11/02 06:42 CST ==="The item is locked in a Klein safe behind a painting in the second-floor library. Klein ...
分类:其他好文   时间:2015-04-18 01:01:46    阅读次数:182
hdu 1151 或 poj 1422 二分图 最小点覆盖集
最小点覆盖集的裸题,只要“拆点建边”然后求出最大匹配,则:最小点覆盖集的大小 = 点数 - 最大匹配 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int N = 121; 7 const int M = ...
分类:其他好文   时间:2015-04-18 01:00:46    阅读次数:162
【冰茶几专题】C - Find them, Catch them
C -Find them, Catch themTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe police office in Tadu City decide...
分类:其他好文   时间:2015-04-18 00:58:57    阅读次数:158
1602条   上一页 1 ... 91 92 93 94 95 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!