- 博客(9)
- 资源 (8)
- 收藏
- 关注
原创 Android带CheckBox的ListView,全选,CheckBox和ListView事件分离
当ListView有CheckBox的时候,容易出现各种问题。常见问题:无法点击列表原因:CheckBox占用焦点,设置它的android:focusable为false即可。当前页某个选框被选中,下拉列表后,新列表的同样位置也被选中:不要根据viewHolder.checkBox的isChecked()判断,改为用那个hashmap的状态判断。下拉列表再拉回来后状态丢失:同上
2015-08-23 17:21:49 1192
原创 Dancing Links X
http://acm.hust.edu.cn/vjudge/contest/view.action?cid=65998#problem/A#include #include #include #include #include #include #include using namespace std;const int maxnode = 100010;cons
2015-08-10 10:43:47 472
原创 简单搜素题集
HDU 2181 哈密顿绕行世界问题不解释#include using namespace std;#define ll long long#define rep( i , a , b ) for ( int i = a ; i <= b ; ++ i )#define clr( a , x ) memset ( a , x , sizeof (a) );#define RE f
2015-08-09 00:46:04 746
原创 网络流-Dinic
#include #include #include using namespace std;#define REP( i , n ) for ( int i = 0 ; i < n ; ++ i )#define FOR( i , a , b ) for ( int i = a ; i <= b ; ++ i )#define CLR( a , x ) memset ( a , x
2015-08-09 00:31:16 530
原创 二维线段树 题集
单点更新,区间查询POJ 1195 Mobile phones一个二维矩阵初值为0,2个操作1、某点(x,y)值增加val 2、查询子矩阵的和 #include #include #include #include #include #include using namespace std;#define ll long long#define rep( i
2015-08-07 16:33:35 1990 4
原创 编程软件一些配置问题
AndroidGenymotion unable to load virtualbox engine//http://stackoverflow.com/questions/17996901/genymotion-error-at-start-unable-to-load-virtualbox1.start Oracle VM VirtualBox and go to preferenc
2015-08-07 01:40:04 543
原创 最小生成树
2018-02-19 23:48:26现在看,以下内容乱七八糟,什么鬼玩意,大家别看了,现在没删是方便我自己回顾代码题目:http://acm.hdu.edu.cn/showproblem.php?pid=1233生成树:对于一个图G(V,E),选一个点集为V,边集为E' ∈ E的子图称为生成树。最小生成树:一个图的生成树有很多,里面权值和最小的生成树为最小生成树(仅有一个)。求解方法有两个:Pr...
2015-08-05 11:54:38 510
转载 大数模板
数字不会超大的情况下可以用#include #include #include #include #include #define rep(i,j,k) for(int i=(int)j;i<=(int)k;i++)using namespace std;struct huge{ #define N_huge 850 #define base 100000000
2015-08-05 09:14:39 457
原创 数位DP模板
不管什么鬼,直接long long 上#include #include #include using namespace std;#define ll long longconst int maxn=20;int bit[maxn];ll dp[maxn][2][2][13]; //dp[i][j][k][k]:长度为i,是否以1结尾,有无13,模13的结果//[a,b]中
2015-08-03 17:08:58 595
eclipse文件批量转编码工具.exe
2017-03-23
sql server odbc驱动
2015-11-12
快速幂_举例说明(3^11次方)
2015-10-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人