码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
[LeetCode] Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.思路:从各位向前处理,当前字符代表的数比后面一位字符代表的数大(包括等于),就加,小就减...
分类:其他好文   时间:2015-02-05 18:19:42    阅读次数:195
1005. Spell It Right
1005. Spell It Right (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task is to compute the sum of ...
分类:其他好文   时间:2015-02-05 17:55:18    阅读次数:178
写入和读取LOB类型的对象
====写入数据============create or replace procedure addWaterFallis directions clob; amount binary_integer; offset integer; first_d...
分类:其他好文   时间:2015-02-05 17:49:31    阅读次数:112
SGU[113] Nearly prime numbers
Description描述Nearly prime number is an integer positive number for which it is possible to find such primesP1andP2that given number is equal toP1*P2. ...
分类:其他好文   时间:2015-02-05 14:53:15    阅读次数:171
PAT1082. Read Number in Chinese
Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negative. For exam...
分类:其他好文   时间:2015-02-05 13:15:38    阅读次数:295
UVA 10026-Shoemaker’s problem(贪心)
Shoemaker's Problem Shoemaker has N jobs (orders from customers) which he must make. Shoemaker can work on only one job in each day. For each ithjob, it is known the integer Ti (1i<=1000), th...
分类:其他好文   时间:2015-02-05 11:15:24    阅读次数:139
[LeetCode]59.Spiral Matrix II
【题目】 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 following matrix: [ [ 1, 2, 3 ], [ 8,...
分类:其他好文   时间:2015-02-04 23:29:21    阅读次数:236
【leetcode】Palindrome Number (easy)
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:其他好文   时间:2015-02-04 23:17:55    阅读次数:162
测试Map,和list的插入效率
public?static?void?count(int?count)?{ System.out.println(new?Date()); List<Integer>?ilist?=?new?ArrayList<Integer>(); for?(int?i?=?0;?i?<?count;?i++)?{ ilist.add(i); ...
分类:其他好文   时间:2015-02-04 19:01:35    阅读次数:210
【Java】Arrays中之于int数组的方法,Integer数组与int数组
在java.util.*中,Arrays似乎很有用的样子,似乎用里面的方法就可以避免使用for循环要自己写对数组的查找、初始化、排序等方法了。 一、先说说Arrays中对整形数组真的有用的方法 1、首先是Arrays.toString() 一般,直接用System.out.println()打印数组,比如这样: int array[] = { 8, 7, 100, 88, 6, 4, 5,...
分类:编程语言   时间:2015-02-04 18:46:25    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!