Print 1 to max N bits numbers.
分类:
其他好文 时间:
2014-05-22 00:21:45
阅读次数:
241
1 #include "stdafx.h" 2 #include 3 #include 4
#include 5 #include 6 #include 7 8 #define MAX_VIDEO_BUFF 1024 9 10 struct
Header 11 { ...
分类:
其他好文 时间:
2014-05-21 20:04:15
阅读次数:
377
无聊写了个高精度模板玩玩...... 1 /* 2 高精度(压位储存) 3 */ 4
#include 5 #include 6 #include 7 #include 8 #include 9 const int
MAX=10005;//最长长度 10 using ...
分类:
其他好文 时间:
2014-05-21 19:47:19
阅读次数:
588
完全背包问题问题:有N种物品和一个容量为V的背包,每种物品都有无限件可用。第i种物品的费用是c[i],价值是w[i]。求解将哪些物品装入背包可使这些物品的费用总和不超过背包容量,且价值总和最大。分析:这个算法使用一维数组,先看伪代码:for
i=1..N for v=0..V f[v]=max{f[...
分类:
编程语言 时间:
2014-05-21 17:51:45
阅读次数:
240
大体题意: 先输入试验次数num,再输入三个字符串A,B,C,判断C可否由A,B按照某种次序组成。如下图。
#include
#include
using namespace std;
#define MAX_SIZE 205
char A[MAX_SIZE];
char B[MAX_SIZE];
char C[2 * MAX_SIZE];
bool...
分类:
其他好文 时间:
2014-05-21 16:05:09
阅读次数:
209
/**
* 多重背包:
* 有N种物品和一个容量为V的背包。第i种物品最多有Mi件可用,
* 每件耗费的空间是Ci,价值是Wi。
* 求解将哪些物品装入背包可使这些物品的耗费的空间总和不超过背包容量,且价值总和最大。
*/
#include
#include
int max(int a, int b){
if (a > b)return...
分类:
其他好文 时间:
2014-05-21 10:00:56
阅读次数:
206
#include "STC12C5A.H"
#define TIMER_RELOAD() {TL0=0x00;TH0=0xC4;}//使能T/C
初始10ms
#define MAX_TASKS 8 //任务槽最大个数.
unsigned char idata task_stack[MAX_TASKS][2];//任务堆栈. PC指针为16位,需2个字节。
unsi...
分类:
编程语言 时间:
2014-05-21 08:12:12
阅读次数:
285
一张图上分布着n台坏了的电脑,并知道它们的坐标。两台修好的电脑如果距离
#include
#include
#include
#include
#include
#include
const int MAXN=111111;
const int MAX_N=111111;
int n,d;
using namespace std;
struct po
{
int x,y;
boo...
分类:
Web程序 时间:
2014-05-21 06:29:47
阅读次数:
418
#define LOCAL#include#includeconst int
MAX_N=100;int a[MAX_N],b[MAX_N];void init(){ for(int i=0;i=1) {
if(b[sum-1]<10) printf(...
分类:
其他好文 时间:
2014-05-21 04:53:29
阅读次数:
175
首先贴一下Unity支持的模型文件类型,以前没有收集过。Unity支持两种类型的3D文件格式:1.
通用的“出口型”3D文件如.fbx、.dae、.3ds、.dxf、.obj等文件格式。2. 3D软件专用的3D文件格式如Max, Maya,
Blender,Cinema4D, Modo, Light...
分类:
移动开发 时间:
2014-05-21 03:33:20
阅读次数:
670