代码如下: cList.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick( AdapterView listView, //listView本身 View itemView, //listView的子View int p1, //位置参数 long...
分类:
其他好文 时间:
2014-07-21 10:37:23
阅读次数:
133
#### 1. 在Hive中使用show tables;等命令报错:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes **解决办法:** 到mysql中的hive数据库里...
分类:
其他好文 时间:
2014-07-21 10:12:36
阅读次数:
453
1、String是最基本的数据类型吗? 基本数据类型包括byte、int、char、long、float、double、boolean和short。 java.lang.String类是final类型的,因此不可以继承这个类、不能修改这个类。为了提高效率节省空间,我...
分类:
编程语言 时间:
2014-07-21 10:06:01
阅读次数:
369
The Triwizard Tournament's third task is to negotiate a corridor of many segments, and reach the other end. The corridor is N segments long. The ith s...
分类:
其他好文 时间:
2014-07-21 09:02:45
阅读次数:
217
立方算法:
#include
#include
#include
#include
#define M 505
using namespace std;
typedef long long LL;
LL a[M],b[M];
int dp[M][M];
int main()
{
//freopen("in.txt","r",stdin);
int T;
cin>>T;
...
分类:
其他好文 时间:
2014-07-20 23:01:50
阅读次数:
284
#include
#include
#include
using namespace std;
struct CNode
{
int L,R;
CNode* pLeft,* pRight;
long long Inc;
long long nSum;
};
CNode Tree[200010];
int nCount=0;
int Mid(CNode* pRoot)...
分类:
其他好文 时间:
2014-07-20 22:38:44
阅读次数:
245
//area=(n*m)/ ((x+1)*(k-x+1))
//1: x==0;
//2: x=n-1
//3: x=m-1
# include
long long max(long long x,long long y)
{
return x>y?x:y;
}
int main()
{
long long n,m,k,sum,t,ans;
scanf("%lld%lld%lld",&...
分类:
其他好文 时间:
2014-07-20 22:27:13
阅读次数:
172
ZOJ3543 Number String状态f[i][j]表示长度为I的全排列,符合字符串的要求,最后一位数字是j的方案数。重点在要始终保持是f算的排列的数量,然后转移时用这些推出来新的情况。就是j#include #include using namespace std;const long l...
分类:
其他好文 时间:
2014-07-20 21:39:23
阅读次数:
230
题解:同BZOJ 3211 花神游历各国,需要注意的是需要开long long,还有左右节点需要注意一下。#include #include #include #include using namespace std;typedef long long LL;LL a[100005],c[10000...
分类:
其他好文 时间:
2014-07-20 21:37:34
阅读次数:
199
今天先把主要逻辑写出来,如果有时间就实现一个真正的截图工具。 1 Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, _ 2 ByVal X As Long, _ 3 ByVal Y As Lo...
分类:
其他好文 时间:
2014-07-20 21:37:19
阅读次数:
303