数字类型:定义变量是不要加引号,加了引号会当作字符串处理又包括int(整形)范围在-2147483648到2147482647之间long(长整型)如果强制将一个整形变成长整型可以在定义变量时在最后加上一个l或Lfloat(浮点型)即带小数complex(复数型)定义时在数字最后面加上j,常用于抛物..
分类:
编程语言 时间:
2014-09-05 16:30:02
阅读次数:
274
Balls are getting more and more popular in the operating room. They act as cushions for chairs and beds in the long effort to the client comfortable a...
分类:
其他好文 时间:
2014-09-01 12:09:23
阅读次数:
240
这个方法是转变为标准尺寸的一个函数,例如int size = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, context.getResources().getDisplayMetrics());这里COMPLEX_U...
分类:
移动开发 时间:
2014-08-26 16:57:56
阅读次数:
316
题目来源:URAL 1748. The Most Complex Number
题意:求一个小于等于n的因子最多的数
思路:搜索+剪枝
#include
#include
using namespace std;
typedef unsigned __int64 LL;
LL prime[16] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53...
分类:
其他好文 时间:
2014-08-22 21:12:09
阅读次数:
228
题目 Numerology is a science that is used by many people to find out a mans personality, sole purpose of life, desires to experience etc. Some calculations of numerology are very complex, while oth...
分类:
其他好文 时间:
2014-08-21 21:20:25
阅读次数:
254
#include #include #include using namespace std; const double pi = acos(-1.0);const int maxn = 500005; struct complex{ double r,i; complex(double r = 0...
分类:
其他好文 时间:
2014-08-21 21:03:39
阅读次数:
341
First I thought of a DP solution.. but TLE. So there must be a O(n). I thought of Mono-Queue.. but looks too complex.So what is the naive solution? O(...
分类:
其他好文 时间:
2014-08-21 14:37:54
阅读次数:
202
1:SDWebImage,UIImageView+WebCache加载一张图片。2:UIViewExt用于定位坐标很有用,可以直接拿到bottom,top,left,right.转:http://blog.csdn.net/complex_ok/article/details/7163736MBPr...
分类:
移动开发 时间:
2014-08-08 21:12:26
阅读次数:
596
Pig的数据类型能够分为两种:一种是scalar类型,包含单一的value,一种是complex类型,包含有其他的类型。对于scalar类型:int,long,float,double,chararray(取代了string),bytecharray.复杂点的类型:1、Map(我用python编写的...
分类:
其他好文 时间:
2014-08-08 15:14:36
阅读次数:
209