码迷,mamicode.com
首页 > 其他好文
lua例子(进出栈)
#include extern "C"{#include "lua-5.2.2/src/lauxlib.h"#include "lua-5.2.2/src/lualib.h"#include "lua-5.2.2/src/lstate.h"}//lua与c交互栈的索引,假如栈中有5个元素//5 -1...
分类:其他好文   时间:2015-03-08 21:24:15    阅读次数:209
Pascal's Triangle
Pascal's Triangle问题:GivennumRows, generate the firstnumRowsof Pascal's triangle.思路: 简单的数学推理我的代码:public class Solution { public List> generate(int ...
分类:其他好文   时间:2015-03-08 21:24:54    阅读次数:188
parseInt
parseInt('1e10') // 1parseInt(1e10) //10000000000parseInt('123e2') // 123parseInt(123e2) // 12300
分类:其他好文   时间:2015-03-08 21:24:01    阅读次数:160
CorAnimation7-高效绘图、图像IO以及图层性能
高效绘图软件绘图术语绘图通常在Core Animation的上下文中指代软件绘图(意即:不由GPU协助的绘图)。在iOS中,软件绘图通常是由Core Graphics框架完成来完成。但是,在一些必要的情况下,相比Core Animation和OpenGL,Core Graphics要慢了不少。软件绘...
分类:其他好文   时间:2015-03-08 21:25:01    阅读次数:251
FPGA_VIP_V101 视频开发板 深入调试小结
FPGA_VIP_V101 推出已经有半年有余,各项功能例程已移植完毕,主要参考crazybingo例程进行移植和结合开发板设计了几个实例例程主要包含:硬件配置: FPGA:EP4CE6E22C8N(6k逻辑资源,可以进行nios开发) SDRAM:HY57V641620(32M,可以做视频图像.....
分类:其他好文   时间:2015-03-08 21:23:12    阅读次数:202
HDU 非诚勿扰 队列、(记一次失败的SBT尝试)
非诚勿扰Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 1312Accepted Submission(s): 473 Problem Descr...
分类:其他好文   时间:2015-03-08 21:24:19    阅读次数:161
电脑右键菜单的编辑(注册表操作)
目录:1、关于右键菜单的探索 2、某些常见的注册表项 3、在命令行中添加和删除注册表项 4、注册表项导入文件(.reg文件)1、关于右键的探索内容:我的电脑右键,文件夹右键,文件右键,特定文件类型的右键链接:http://wenku.baidu.com/link?url=2Z-9tm4kZJiqZa...
分类:其他好文   时间:2015-03-08 21:24:30    阅读次数:167
UVa 11754 (中国剩余定理 枚举) Code Feat
如果直接枚举的话,枚举量为k1 * k2 *...* kc根据枚举量的不同,有两种解法。枚举量不是太大的话,比如不超过1e4,可以枚举每个集合中的余数Yi,然后用中国剩余定理求解。解的个数不够S个的时候,要把这些解分别加上M、2M...(M = X1 * X2 *...* Xc)如果上述枚举量太大的...
分类:其他好文   时间:2015-03-08 21:22:40    阅读次数:163
A1066. Root of AVL Tree (25)
An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any...
分类:其他好文   时间:2015-03-08 21:23:08    阅读次数:173
半导体行业收购潮来袭 2015开年收购案盘点及解读
半导体行业收购潮来袭 2015开年收购案盘点及解读来源: OFweek电子工程网 发布者:OFweek电子工程网有分析师表示:2015 年整个半导体市场将会发生巨变。一旦豪威科技下市成功,必然点燃美国硅谷公司与中国半导体公司整合的导火索,新一轮半导体收购潮蓄势待发。在过去短短的两个月的时间里,半导体...
分类:其他好文   时间:2015-03-08 21:24:36    阅读次数:165
H - The Falling Leaves
DescriptionEach year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by the fall...
分类:其他好文   时间:2015-03-08 21:24:36    阅读次数:119
addEventListener的第二个参数——listener
addEventListener()方法是将指定的事件监听器注册到目标对象上,当该对象触发指定的事件时,指定的回调函数就会被执行。语法:element.addEventListener(type, listener[, useCapture]);其中listener:当指定的事件类型发生时被通知到的...
分类:其他好文   时间:2015-03-08 21:23:05    阅读次数:227
ZOJ2971 Give Me the Number 【模拟】
这道题目使用Map。 然后一次性遍历下来即可。 QAQ注意初始化的时候小心点不要错..Source Code://#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #incl...
分类:其他好文   时间:2015-03-08 21:23:54    阅读次数:134
宏定义#define
#include #define exchange(a,b){\int t;\t=a;\a=b;\b=t;\}int main(int arge,char *argv){int a=2,b=3;printf("交换前a=%d,b=%d",a,b);exchange(a,b);printf("交换后a...
分类:其他好文   时间:2015-03-08 21:23:07    阅读次数:133
Reverse Bits
uint32_t reverseBits(uint32_t n) { int k = 0; uint32_t result = 0; while(n){ result+=((n%2)>=1; k++; } return result;}
分类:其他好文   时间:2015-03-08 21:21:29    阅读次数:137
hihoCoder #1110 Regular Expression
Problem:DescriptionYour task is to judge whether the input is a legal regular expression.A regular expression is defined as follow:1: 0 and 1 are both...
分类:其他好文   时间:2015-03-08 21:20:11    阅读次数:199
Plus One
Plus One问题:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant ...
分类:其他好文   时间:2015-03-08 21:22:25    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!