码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
A1005. Spell It Right (20)
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specificati...
分类:其他好文   时间:2015-03-14 09:36:09    阅读次数:133
A1085. Perfect Sequence (25)
Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M 2 #include 3 #include 4 ...
分类:其他好文   时间:2015-03-14 07:24:21    阅读次数:160
Leetcode: Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return...
分类:其他好文   时间:2015-03-14 07:24:14    阅读次数:139
Leetcode: Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit i...
分类:其他好文   时间:2015-03-14 06:14:08    阅读次数:165
LeetCode 190 Reverse Bits
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:其他好文   时间:2015-03-14 06:13:47    阅读次数:147
Fibonacci(矩阵)
FibonacciTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uDescriptionIn the Fibonacci integer sequence,F0= 0,F1= 1, andFn=Fn? 1+Fn? 2...
分类:其他好文   时间:2015-03-13 20:24:42    阅读次数:208
Delphi编程建议遵守的规范2---命名规范
1.1.形参命名建议 所有形参的名称都应当表达出它的用途。如果合适的话,形参的名称最好以字母a为前缀,例如:procedure SomeProc(aUserName:string; aUserAge:integer); 当参数名与类的特性或字段同名时,前缀a就有必要了1.2.命名冲突 当两...
分类:Windows程序   时间:2015-03-13 18:05:08    阅读次数:314
【LeetCode从零单排】No 191.Number of 1 Bits(考察位运算)
题目Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 0000000000...
分类:其他好文   时间:2015-03-13 16:35:33    阅读次数:125
POJ 3026 Borg Maze
Borg MazeTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged on PKU. Original ID: 3026 64-bit integer IO format: %lld Jav...
分类:其他好文   时间:2015-03-13 16:02:58    阅读次数:129
最小乘积
/**  * 给两组数,各n个。  * 请调整每组数的排列顺序,使得两组数据相同下标元素对应相乘,然后相加的和最小。  */ import java.util.*; import java.io.*; public class 最小乘积 { public static void JianArray(Integer[] b1) { Arrays.sort(b1); in...
分类:其他好文   时间:2015-03-13 14:27:57    阅读次数:121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!