码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
Codeforces Round #226 (Div. 2):Problem 385C - Bear and Prime Numbers (素数刷法+前缀和)
Time Limit: 2000ms Memory Limit: 524288KB This problem will be judged on CodeForces. Original ID: 385C 64-bit integer IO format: %I64d      Java class name: (Any) Prev Submit Status Sta...
分类:其他好文   时间:2015-01-30 09:14:45    阅读次数:128
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.方法一:public class Solution { public boolean isPalindrome(int x) { S...
分类:其他好文   时间:2015-01-29 23:57:41    阅读次数:222
java读取oracle数据库中blob字段
测试表create table TEST_IMG ( ID INTEGER not null, NAME VARCHAR2(32), IMAGE BLOB );说明:1、使用JDBC演示2、IMAGE字段存储一个图片程序代码如下:import java.io.FileNotFoundException; import java.io.FileOutputStream; impo...
分类:数据库   时间:2015-01-29 22:36:18    阅读次数:301
php取整函数floor(),round(),intval(),ceil()
ceil -- 进一法取整说明float ceil ( float value )返回不小于 value 的下一个整数,value 如果有小数部分则进一位。ceil() 返回的类型仍然是 float,因为 float 值的范围通常比 integer 要大。PHP取整函数例子 1. ceil() 例子...
分类:Web程序   时间:2015-01-29 19:20:12    阅读次数:124
[LeetCode]168.Excel Sheet Column Title
【题目】 Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB...
分类:其他好文   时间:2015-01-29 15:57:07    阅读次数:189
Integer to Roman
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. string intToRoman(int num) { int numarr[] = {1, 4, 5, 9, 10, 40, 50, 90, 100, 400,...
分类:其他好文   时间:2015-01-29 15:55:56    阅读次数:124
leetcode.9---------------Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of convert...
分类:其他好文   时间:2015-01-29 12:50:33    阅读次数:138
LeetCode --- 12. Integer to Roman
题目链接:Integer to Roman Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 这道题的要求是将整数转化成罗马数字,其中输入数据范围是1到3999。 罗马数字是最早的数字表示方式,比阿拉伯数字早2000多年,起源...
分类:其他好文   时间:2015-01-29 12:48:44    阅读次数:181
LeetCode --- 13. Roman to Integer
题目链接:Roman to Integer Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 这道题的要求是将罗马数字转化成整数,其中输入数据范围是1到3999。 罗马数字是最早的数字表示方式,比阿拉伯数字早2000多年,起源...
分类:其他好文   时间:2015-01-29 12:48:40    阅读次数:121
动态数组ArrayList的使用
1.定义类package com.realhope.rmeal.bean;/*** * @author Wucy* 菜谱类*/public class Menu{private Integer _id; private Integer typeID;// 菜单类型 private String na...
分类:编程语言   时间:2015-01-29 11:54:05    阅读次数:238
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!