Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionFarmer John has built a new long barn, with N (2 #include #.....
分类:
其他好文 时间:
2014-07-26 00:23:36
阅读次数:
286
As a graduate, it's a shame that i do not have my technical blog. Actually, the thought of having my own blog last for long and i even wrote my person...
分类:
其他好文 时间:
2014-07-25 19:12:32
阅读次数:
360
和机器字长及编译器有关系:所以,int,long int,short int的宽度都可能随编译器而异。但有几条铁定的原则(ANSI/ISO制订的): 1 sizeof(short int)<=sizeof(int) 2 sizeof(int)<=sizeof(long int) 3 short in...
分类:
编程语言 时间:
2014-07-25 19:11:02
阅读次数:
280
先上题目:C-Lowbit SumTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Descriptionlong long ans = 0;for(int...
分类:
其他好文 时间:
2014-07-25 14:00:01
阅读次数:
197
项目需要把 long 转换成 Timestamp,而且需要是 UTC 时间格式。 网上 google了好久,总结了这个写法 Calendar?cal?=?Calendar.getInstance();
long?value?=?cal.getTimeInMillis();???????//your?l...
分类:
编程语言 时间:
2014-07-25 11:43:41
阅读次数:
278
Among other things, Bob is keen on photography. Especially he likes to take pictures of sportsmen. That was the reason why he placed himself in position x0 of
a long straight racetrack and got ready...
分类:
其他好文 时间:
2014-07-25 11:26:31
阅读次数:
447
1:基础数据与封装类型之间的转型
A:基础数据类型--->封装类型(对象类型)
Boolean boolean_1 = new Boolean(true);
byte ---->Byte
short---->Short
char---->Character
int--->Integer
long-->Long
float-->Float
double-->Double...
分类:
其他好文 时间:
2014-07-25 11:24:51
阅读次数:
210
树状数组+二分
就是找第几小的数,,找几次,再求和。。
#include
#include
#include
#include
#include
using namespace std;
const int N=277777;
int t,n,m,bit[N],num,i;
long long ans;
int low(int g)
{
return g&(-g);
}
void up...
分类:
其他好文 时间:
2014-07-24 23:29:33
阅读次数:
266
///
/// 将string格式转化为十六进制数据
///
///
///
///
///
public static string tenToSixteen(string msg)
{
long number = C...
分类:
其他好文 时间:
2014-07-24 23:23:23
阅读次数:
225
递归的边界条件写的多了……没必要写呢么多的。。
不明白可共同探讨~
#include
#include
#include
using namespace std;
long long dp(int kk,int pos)
{
int n=kk;int temp=(int)pow(2,n);
// printf("%d %d\n",kk,pos);
if(kk==0&&...
分类:
其他好文 时间:
2014-07-24 23:17:03
阅读次数:
368