码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
HDU 1006 Digital Roots
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit the...
分类:其他好文   时间:2014-11-03 22:07:53    阅读次数:149
AVS-P2中的8x8二维整数余弦变换(Integer Cosine Transform, ICT)
为何采用ICT? 基于块的DCT能很大程度上去除图像元素在变换域中的相关性,在图像和视频编码领域得到广泛的应用。但由于DCT存在计算量大以及存在反变换失配,因此AVS Part 2采用的是ICT,其性能接近8x8 DCT,但精确定义到每一位的运算避免了不同反变换之间的失配。ICT具有复杂度低、完全匹配等优点。ICT可用加法和移位直接实现。 何为ICT? 整数余弦变换(Intege...
分类:其他好文   时间:2014-11-03 17:52:42    阅读次数:378
[Erlang]前人挖坑,后人还要进坑?(3)
??21.在生成随机数过程中一直使用:random:seed(erlang:now()).erlang:now()是可以一直递增的数,从不重复,但是不适合用于随机算法,最好使用下面这种:-spec get_random_num(integer()) -> integer(). get_random_num(Max) -> > = crypto:rand_bytes(12), ran...
分类:其他好文   时间:2014-11-03 17:46:44    阅读次数:347
POJ 1797 Heavy Transportation
Heavy TransportationTime Limit: 3000msMemory Limit: 30000KBThis problem will be judged onPKU. Original ID:179764-bit integer IO format:%lld Java class...
分类:其他好文   时间:2014-11-03 16:11:25    阅读次数:244
POJ 1975 Median Weight Bead
Median Weight BeadTime Limit: 1000msMemory Limit: 30000KBThis problem will be judged onPKU. Original ID:197564-bit integer IO format:%lld Java class n...
分类:其他好文   时间:2014-11-03 14:29:19    阅读次数:222
[leetcode]Reverse Integer
问题描述: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 思路: 这个问题是实现整型数的逆转。实现起来很简单。但要考虑转换后溢出的情况。如1000000003 转换后应该是3000000001 ,但是3000000001已经超出了int型的...
分类:其他好文   时间:2014-11-03 10:14:56    阅读次数:163
函数和过程的参数
函数和 过程的参数有:1.常量参数,如 function addFun( const x,y:integer):integer; 函数里面的x,y的值不能改变function addFun( const x,y:integer):integer;begin //x := x+1; //x,y在函.....
分类:其他好文   时间:2014-11-02 22:32:51    阅读次数:153
使用位运算显示二进制数
最近学习《C Primer Plus》位操作部分,结合书上的编程实例来巩固这部分知识点。 1 //使用位运算显示二进制数 2 #include 3 char *itobs( int, char*); //integer to binary string 4 vo...
分类:其他好文   时间:2014-11-02 22:32:34    阅读次数:453
[leetcode]String to Integer (atoi)
问题描述: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible i...
分类:其他好文   时间:2014-11-02 21:04:25    阅读次数:140
atcoder之A Great Alchemist
C - A Great Alchemist Time limit : 2sec / Stack limit : 256MB / Memory limit : 256MB Problem Carol is a great alchemist. In her world, each metal has a name of 2N (N is an integer) l...
分类:其他好文   时间:2014-11-02 16:34:23    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!