码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
iOS debug release
#ifndef __OPTIMIZE__#define NSLog(...) NSLog(__VA_ARGS__)#else#define NSLog(...){}#endif打开Xcode -->>product -->scheme -->>edit scheme -->info 设置debug ...
分类:移动开发   时间:2014-07-14 21:08:29    阅读次数:262
BZOJ 1087状态压缩DP
状态压缩DP真心不会写,参考了别人的写法。先预处理出合理状态,我们用二进制表示可以放棋子的状态,DP[I][J][K]:表示现在处理到第I行,J:表示第I行的状态,K表示现在为止一共放的棋子数量。#include#include#define N 1111using namespace std;t....
分类:其他好文   时间:2014-07-14 19:56:24    阅读次数:254
将字符串反转,但单词不倒置2。Right here waiting for you! -> you! for waiting here Right
//将字符串反转,但单词不倒置。Right here waiting for you! -> you! for waiting here Right#define _CRT_SECURE_NO_WARNINGS#include #include int main() { char str[25...
分类:其他好文   时间:2014-07-14 19:42:46    阅读次数:278
fzu 1753 Another Easy Problem
本题题意为求 t (t#include #include #define maxn 100010using namespace std;int sign[maxn];int pri[maxn];int tot;int e;int n[200],k[200];void getpri (){ me...
分类:其他好文   时间:2014-07-14 19:06:58    阅读次数:248
HDU 4308 Saving Princess claire_
BFS问题。 题意是问 王子救公主 需要花费多少钱。每路过一个 * 就要支付 cost 那么多的钱。求最短。 多个P 传送点就 多个点进队即可。 #include #include #include #include #include #include #include #include #include #include #include #define INF 0...
分类:其他好文   时间:2014-07-14 18:32:08    阅读次数:211
HDOJ1556 Color the ball 【线段树】+【树状数组】+【标记法】
10951071 2014-07-06 16:14:52 Time Limit Exceeded 1556 3000MS 584K 400 B G++ 长木 #include #include #define maxn 100000 + 2 int arr[maxn]; int main() { int n, a, b; while(scanf("...
分类:其他好文   时间:2014-07-14 18:12:43    阅读次数:264
Codeforces Round #FF (Div. 2)
A. DZY Loves Hash    水题!! AC代码如下: #include #include #include #include #include #define inf 100000000 #define M 100005 #define ll long long #define F(a,b) for(i=a;i<=b;i++) #define ME(a) memse...
分类:其他好文   时间:2014-07-14 17:30:29    阅读次数:267
你不知道的多重循环的事情
当你循环输入的时候我们有几种方法 一:while(scanf("%d %d",&a,&b)!=EOF)//>0//==1 反正有很多种,但是今天早上我用两个代码提交发现了问题 相同的算法但是第一个超时 #include #include #define max 1000000+10 #include using namespace std; int a[max]; int cmp(int...
分类:其他好文   时间:2014-07-14 16:46:36    阅读次数:201
ifndef /define/ endif 作用和用法
问题:ifndef/define/endif”主要目的是防止头文件的重复包含和编译========================================================用法:.h文件,如下:#ifndef XX_H#define XX_H...#endif这样如果有两个地方...
分类:其他好文   时间:2014-07-14 16:03:17    阅读次数:171
django模板报错:Requested setting TEMPLATE_DEBUG, but settings are not configured. You must either define
转自:http://blog.csdn.net/xiaowanggedege/article/details/8651236 django模板报错: Requested setting TEMPLATE_DEBUG, but settings are not configured. You must...
分类:其他好文   时间:2014-07-14 16:00:46    阅读次数:302
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!