码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
LeetCode--Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -32思路: 很简单的思路,对x对10取余数,把x从低位到高位的数字依次提取出来,再每次对结果乘10加上新取出的个位,最后x=x/1....
分类:其他好文   时间:2014-10-22 00:45:15    阅读次数:135
CodeForces 362E Petya and Pipes
Petya and PipesTime Limit: 1000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:362E64-bit integer IO format:%I64d Java c...
分类:其他好文   时间:2014-10-22 00:40:20    阅读次数:218
Reverse Integer 旋转数字
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321本地注意正负号判断比较关键,实现部分可能不是最优的,按照自己的想法实现:设ret = 1;每次对x进行取余mod,然后ret ...
分类:其他好文   时间:2014-10-21 22:49:34    阅读次数:223
AtomicInteger类
AtomicInteger,一个提供原子操作的Integer的类。在Java语言中,++i和i++操作并不是线程安全的,在使用的时候,不可避免的会用到synchronized关键字。而AtomicInteger则通过一种线程安全的加减操作接口。 来看AtomicInteger提供的接口。 public final int get() //取当前的值,并设置...
分类:其他好文   时间:2014-10-21 21:44:35    阅读次数:190
HDU 4751 Divide Groups
Divide GroupsTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:475164-bit integer IO format:%I64d Java class name:...
分类:其他好文   时间:2014-10-21 21:09:56    阅读次数:230
Sql case when用法
说明,sql中的if和else是不能在select 语句中使用的。只能用来控制sql程序的流程。只能用case when。CREATE TABLE USER(NAME VARCHAR(20) NOT NULL,---姓名SEX INTEGER,---性别(1、男2、女)BIRTHDAY DATE--...
分类:数据库   时间:2014-10-21 15:10:20    阅读次数:251
__m128i的理解[转]
__m128i被称为128bits的整数,当我们对其赋值时,调用__m128i_mm_set1_epi32(int i)Sets the four signed 32-bit integer values toi.R0R1R2R3iiii则会有上面的效果,__m128i类型的值会被分为4部分,且这里...
分类:其他好文   时间:2014-10-21 15:09:13    阅读次数:202
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 ...
分类:其他好文   时间:2014-10-21 02:13:40    阅读次数:211
用API函数抓取屏幕图像
procedure screenshot(shot: string);var dibH : hBitmap; bits : pointer; info : TBITMAPINFO; width,height : integer; screenDC,dibDC : hDC; f : file of b...
分类:Windows程序   时间:2014-10-21 00:49:27    阅读次数:383
delphi调用外部程序并等待其运行结束
uses Windows, SysUtils, Classes, ShellAPI;function RunWait(FileName: string; Visibility: Integer): THandle;var zAppName: array[0..512] of Char; zCurDi...
分类:Windows程序   时间:2014-10-21 00:47:23    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!