码迷,mamicode.com
首页 >  
搜索关键字:long    ( 19145个结果
Opencl 并行求和
上周尝试用opencl求极大值,在网上查到大多是求和,所谓的reduction算法。不过思路是一样的。CPP: int err = 0; unsigned long int nNumCount = 102400000; int nLocalSize = 256; int nGr...
分类:其他好文   时间:2014-06-29 07:47:56    阅读次数:1793
月汇总工作表 VBA
Sub 月汇总() Dim MyPath, MyName, AWbNameDim Wb As Workbook, WbN As StringDim G As LongDim num As Long Application.ScreenUpdating = FalseMyPath = ActiveW....
分类:其他好文   时间:2014-06-11 21:56:24    阅读次数:398
BZOJ3532: [Sdoi2014]Lis
感谢ZYF神犇的耐心解答……如果这题只要求最小代价……那就是一个比较明显的拆点最小割,对于所有\(j 11 #include 12 #include 13 #include 14 using namespace std; 15 typedef long long LL; 16 const in...
分类:其他好文   时间:2014-06-11 12:00:44    阅读次数:290
算术类型&确定编译环境的位数
算术类型:整型(integral type)char : 一个机器字节(1BYTE = 8BIT)bool: 1 BIT整型: int: 与编译环境相关(不是机器),32位的编辑环境则长度为32BIT,故可以使用sizeof(int)来得到编译器环境的位数(返回的是字节长度)short/long/....
分类:其他好文   时间:2014-06-11 11:20:39    阅读次数:175
文件格式化输入和输出
在控制台操作时,使用的格式化输入和输出为scanf和printf,那么对文件的IO操作也可以使用fscanf和fprintf,它们的使用如下: #include #include #include const int LENGTH=80; int main(void){ long num1=234567L; long num2=345123L; long num3=78...
分类:其他好文   时间:2014-06-07 13:12:41    阅读次数:248
uva 11987 Almost Union-Find (并查集)
题目大意: 三个操作。 1. 合并两个集合 2.把第一个元素放到第二个集合里 3.输出集合的数量和和。。 思路分析: 要用p记录这个元素所在集合编号,然后用编号建立并查集。 #include #include #include #include using namespace std; typedef long long LL; int set[111111...
分类:其他好文   时间:2014-06-07 12:52:40    阅读次数:267
poj 1061 青蛙的约会()
题目链接题意:扩展gcd模板: 1 #include 2 #include 3 #include 4 #include 5 #define LL long long 6 using namespace std; 7 8 void exgcd(LL a, LL b, LL &d, LL &x...
分类:其他好文   时间:2014-06-07 07:50:13    阅读次数:187
C语言基础学习笔记
--C语言框架--数据 字节byte 字符char 8 半字half word 短整型 short int 16 字word 整型int(integer) 32 长整型long int 32 单精度float 32 双字(double word) 双精度double 64↓自定义类型:结构体stru...
分类:编程语言   时间:2014-06-06 15:32:21    阅读次数:367
[Andriod]计时器实现-基于线程消息机制三种方式
在Android开发中,定时器一般有以下3种实现方法:一、采用Handler与线程的sleep(long)方法二、采用Handler的postDelayed(Runnable, long)方法三、采用Handler与timer及TimerTask结合的方法下面逐一介绍:一、采用Handle与线程的s...
分类:编程语言   时间:2014-06-05 20:57:39    阅读次数:372
C++ char和string
CPU的标识ILP32:Windows X86 int long point 32位= 4个字节LP64: X86_64 long point 64位 = 8个字节char和string的存储区别1. char 是标准C语言类型, 优点:基础类型,结构单一,速度快,拷贝快,因为不是基于new和del...
分类:编程语言   时间:2014-06-05 17:32:54    阅读次数:251
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!