码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果
Spiral Matrix II leetcode java
题目: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n = 3,You should return the foll....
分类:编程语言   时间:2014-08-03 05:21:18    阅读次数:272
xtu DP Training C.炮兵阵地
炮兵阵地Time Limit: 2000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:118564-bit integer IO format:%lld Java class name:Main司令部的将军...
分类:其他好文   时间:2014-08-02 23:23:05    阅读次数:302
xtu DP Training B. Collecting Bugs
B. Collecting BugsTime Limit: 10000msMemory Limit: 64000KB64-bit integer IO format:%lld Java class name:MainSpecial JudgeIvan is fond of collecting. U...
分类:其他好文   时间:2014-08-02 20:36:46    阅读次数:258
Java杂谈之各种类型转换
在写程序时,难免会遇到类型转换的问题,下面列出了各种类型的转换方法,我们要做的 只是会举一反三就可以了。 package JavaTestString; //包装类 //char----charcter //float---Float //int-----Integer //boolean-Boolean public class JavaTypeConvert { public sta...
分类:编程语言   时间:2014-08-02 15:40:13    阅读次数:258
POJ - 2886 Who Gets the Most Candies? (反素数+线段树)
Description N children are sitting in a circle to play a game. The children are numbered from 1 to N in clockwise order. Each of them has a card with a non-zero integer on it in his/her hand. Th...
分类:其他好文   时间:2014-08-02 15:37:33    阅读次数:259
String to Integer (atoi)
问题:将字符窜转换成数字分析:感觉题目不难,但是细节很多,容易想不到1.数字前面有空格 如s=“ 123456”2.数字前出现了不必要或多于的字符导致数字认证错误,输出0 如s=“ b1234” ,s=“ ++1233” , s=“ +-1121”3.数字中出现了不必要的字符,返回字符前的数字...
分类:其他好文   时间:2014-08-02 12:36:23    阅读次数:301
xtu summer individual 2 E - Double Profiles
Double ProfilesTime Limit: 3000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:154C64-bit integer IO format:%I64d Java c...
分类:其他好文   时间:2014-08-02 12:34:23    阅读次数:197
xtu read problem training 2 B - In 7-bit
In 7-bitTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged onZJU. Original ID:371364-bit integer IO format:%lld Java class name:MainVe...
分类:其他好文   时间:2014-08-02 12:22:13    阅读次数:230
Roman to Integer leetcode java
题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 题解:这道题跟interger to roman一样都得先熟悉罗马数字的规则。罗...
分类:编程语言   时间:2014-08-02 10:01:33    阅读次数:231
Reverse Integer leetcode java
题目:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here...
分类:编程语言   时间:2014-08-02 09:56:33    阅读次数:249
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!