码迷,mamicode.com
首页 >  
搜索关键字:max db_recovery_file    ( 23676个结果
hdu 3038 How Many Answers Are Wrong
http://acm.hdu.edu.cn/showproblem.php?pid=3038 1 #include 2 #include 3 #include 4 #define maxn 600000 5 using namespace std; 6 7 int f[maxn],d[max...
分类:其他好文   时间:2014-05-19 18:51:33    阅读次数:252
无限逼近思想
//#define LOCAL#include#includeusing namespace std;int const MAX_N=100001;int const INF=10000000;int N,M,x[MAX_N];void init(){ for(int i=0;i1) {...
分类:其他好文   时间:2014-05-19 17:20:45    阅读次数:204
找点(NYOJ891)
//#define LOCAL#include#include#include#includeint const MAX_N=101;typedef struct Point{ int x,y; bool operatorVec[i].y) { ...
分类:其他好文   时间:2014-05-19 17:08:45    阅读次数:253
堆排序的实现
#includeusing namespace std;//大根堆,从小到达排序int a[101];void swap(int &a,int &b){ a=a^b; b=a^b; a=a^b; }void adjust(int *a,int root,int len){ int max=root;...
分类:其他好文   时间:2014-05-19 15:13:43    阅读次数:219
[游戏模版18] Win32 五子棋
>___ 2 // C 运行时头文件 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 12 #define MAX_LOADSTR...
分类:Windows程序   时间:2014-05-19 15:06:33    阅读次数:642
溢出
无符号数相加不会发生溢出。因为会直接截断。但是有符号数相加,会发生溢出。溢出表示大于最大表示了那么如何判断有符号数发生溢出呢?下面两个非负数相加if(a + b INT_MAX - b)可行,不计算a+b或者(unsigned)a + (unsigned)b > INT_MAX 换成无符号,a+b....
分类:其他好文   时间:2014-05-19 12:45:15    阅读次数:206
python基础教程_学习笔记5:字符串
字符串 基本字符串操作 字符串也是序列,因此序列的基本操作(索引、分片、连接、乘法、长度、求最大值和最小值、成员资格)对字符串同样适用: 索引 >>> 'a_string'[0] 'a' 长度 >>> len('a_string') 8 求最大值 >>> max('a_string') 't' 求最小值 >>> min('a_string') '_' 乘法 >>> ...
分类:编程语言   时间:2014-05-18 10:50:15    阅读次数:325
U3D学习心得-----资源管理:模型和角色动画的输出设置(上)
模型主要可以以两种方式进行输出: (1)使用插件进行输出。并输出为指定的文件格式,如FBX或OBJ (2)直接输出为响应的3D应用文件,如.max或者Blen,Unity自身再进行转换。 使用3D软件包自身格式进行输出的优缺点: 优点:(1)快速的输出工程,直接从3D文件到Unity            (2)简单的初始化过程 缺点:(1)文件中可能会包括不需要的数据。  ...
分类:其他好文   时间:2014-05-18 06:42:00    阅读次数:253
51系列小型操作系统精髓 简单实现4
#include #define MAX_TASKS 2 //任务槽个数.必须和实际任务数一至 #define MAX_TASK_DEP 12 //最大栈深.最低不得少于2 个,保守值为12. unsigned char idata task_stack[MAX_TASKS][MAX_TASK_DEP];//任务堆栈. unsigned char idata task_sp[MA...
分类:其他好文   时间:2014-05-18 05:12:43    阅读次数:339
数据结构与算法一
题目一:求1!+2!+…..+n! 的和的后6位,(注意n的范围) #include using namespace std; const int MAX = 1000000; int getResu(int n) { int sum=0; int temp= 1; for(int i=1; i <= n; i++) { temp *= i; temp %= MAX; ...
分类:其他好文   时间:2014-05-18 03:36:19    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!