码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
Number Theory(数论-对数)
X - Number Theory Time Limit:2000MS     Memory Limit:32768KB     64bit IO Format:%lld & %llu Submit Status Description Factorial of an integer is defined by the following f...
分类:其他好文   时间:2014-10-09 17:02:18    阅读次数:237
第十二题 Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements fro...
分类:其他好文   时间:2014-10-09 15:58:28    阅读次数:232
Delphi之过程与函数
过程以保留字procedure开始,没有返回值;函数以保留字function开始,有返回值。参数位于括号里面,多个参数之间以分号分隔,例如:procedure SetDate(Year: Integer; Month: Integer; Day: Integer);也可以将相同类型的参数组合在一起,...
分类:其他好文   时间:2014-10-09 14:50:44    阅读次数:191
Hex string convert to integer with stringstream
#include #include int main() { unsigned int x; std::stringstream ss; ss > x; // output it as a signed type std::cout (x) << std::end...
分类:其他好文   时间:2014-10-09 14:17:23    阅读次数:201
Leetcode:integer_to_roman
将给定的数字(阿拉伯数字)转化成罗马数字。数字不会大于3999...
分类:其他好文   时间:2014-10-09 02:18:57    阅读次数:186
Integer to Roman(JAVA)
1 public String intToRoman(int num) { 2 int[] values={1000,900,500,400,100,90,50,40,10,9,5,4,1}; 3 String[] roman={"M","CM","D","CD","C...
分类:编程语言   时间:2014-10-09 01:25:07    阅读次数:165
java中byte转换int时为何与0xff进行与运算(转)
在剖析该问题前请看如下代码Java代码publicstaticStringbytes2HexString(byte[]b){Stringret="";for(inti=0;i<b.length;i++){Stringhex=Integer.toHexString(b[i]&0xFF);if(hex....
分类:编程语言   时间:2014-10-08 18:11:05    阅读次数:216
HDU 1754 I Hate It
I Hate ItTime Limit: 3000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:175464-bit integer IO format:%I64d Java class name:Main...
分类:其他好文   时间:2014-10-07 23:12:54    阅读次数:230
HDU 1166 敌兵布阵
敌兵布阵Time Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:116664-bit integer IO format:%I64d Java class name:MainC国的死对...
分类:其他好文   时间:2014-10-07 22:04:14    阅读次数:257
LeetCode——Reverse Integer(逆置一个整数)
问题: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return –321 Have you thought about this? Here are some good questi...
分类:其他好文   时间:2014-10-07 19:51:14    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!