二分搜索思想:bool C(double x)可以得到长度为x的绳子//#define
LOCAL#include#includeint const MAX_N=10005;int const MAX_M=100;double const
INF=100000000;int N,K;double d...
分类:
其他好文 时间:
2014-05-17 00:13:44
阅读次数:
271
1 题目大意给出一个n,求sum(gcd(i,j),014 #include 15 using
namespace std;16 #define Max 100000017 18 long long phi[Max+5],ans[Max+5];19 int
prime[Max/3];20 bool....
分类:
其他好文 时间:
2014-05-13 22:40:58
阅读次数:
251
1 /** 2 极角排序输出,,, 3 主要atan2(y,x) 容易失精度,,用 4 bool
cmp(point a,point b){ 5 if(cross(a-tmp,b-tmp)>0) 6 return 1; 7
if(cross(a-tmp,b-tmp)...
分类:
其他好文 时间:
2014-05-13 20:05:34
阅读次数:
242
分类的.h文件提供四个方法来方便使用 - (BOOL)isToday;//判断是否为今天 -
(BOOL)isYesterday;//是否为昨天 - (BOOL)isThisYear;//是不是今年 - (NSDate
*)dateWithYMD;//格式化日期,返回yyyy-MM-...
分类:
其他好文 时间:
2014-05-13 18:52:45
阅读次数:
325
一、Python的标准类型(1)bool型>>>
bool("")False>>> bool(None)False>>>
bool(False)False(2)数值型Python的数值型数据包含两类:int和float型数据,需要注意的是还有一个complex的类型,也就是复数类型>>>
a = c...
分类:
Web程序 时间:
2014-05-13 17:49:08
阅读次数:
436
效果图:
程序代码:
bool HelloWorld::init()
{
//////////////////////////////
// 1. super init first
if ( !CCLayer::init() )
{
return false;
}
CCSize visibleSize =...
分类:
移动开发 时间:
2014-05-13 16:27:03
阅读次数:
402
本文 为博主看了 vamei 的blog 写下的随笔 . 致敬Vamei1.type()
可以显示参数的类型 如 : a=12 type(a) 为 int2.python的基本类型 为 int float bool string 如 int :
i=1 , float : f=12.5 ,...
分类:
编程语言 时间:
2014-05-13 10:02:12
阅读次数:
328
效果图:
程序分析:
初始化GameLayer场景触摸,背景、音乐、UI及定时间器
bool GameLayer::init()
{
if (!CCLayer::init()) {
return false;
}
// 开启触摸
this->setTouchEnabled(true);
// 创建数组,需要...
分类:
其他好文 时间:
2014-05-13 07:39:29
阅读次数:
214
手动模拟。。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 10100
#define inf 1000000010
mapx,y;
struct X{
int x,y;
bool operator<(const X&a)const{...
分类:
其他好文 时间:
2014-05-13 07:29:10
阅读次数:
294
/*
ID:kevin_s1
PROG:dualpal
LANG:C++
*/
#include
#include
#include
#include
#include
using namespace std;
int N,S;
vector result;
bool isPalindromic(string num){
bool flag = true;
int len =...
分类:
其他好文 时间:
2014-05-13 06:10:09
阅读次数:
312