码迷,mamicode.com
首页 >  
搜索关键字:bool    ( 16475个结果
Cable master (POJ No.1064)
二分搜索思想: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
spoj 3871 gcd extreme
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
poj 2007 Scrambled Polygon 极角排序
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
NSDate的使用方便的分类(提供判断是否为今天,昨天,今年的方法)
分类的.h文件提供四个方法来方便使用 - (BOOL)isToday;//判断是否为今天 - (BOOL)isYesterday;//是否为昨天 - (BOOL)isThisYear;//是不是今年 - (NSDate *)dateWithYMD;//格式化日期,返回yyyy-MM-...
分类:其他好文   时间:2014-05-13 18:52:45    阅读次数:325
Django Web开发学习笔记(1)
一、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
Python学习中的随笔,好记性不如烂笔头
本文 为博主看了 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
HDU 4022 Bombing STL 模拟题
手动模拟。。 #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
USACO dualpal
/* 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!