码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
hdoj 3501
Problem DescriptionGiven a positive integer N, your task is to calculate the sum of the positive integers less than N which are not coprime to N. A .....
分类:其他好文   时间:2014-10-11 16:30:15    阅读次数:172
Hibernate实现many-to-many的映射关系
(1)一个最简单的例子就是学生选课的数据表了 (2)Student.java public class Course { private Integer id; private String name; private Set stuCourses; //get/set方法 } (3)Student.java public class Student { private...
分类:Web程序   时间:2014-10-11 00:48:54    阅读次数:338
Java 装箱 拆箱
Java 自动装箱与拆箱??什么是自动装箱拆箱基本数据类型的自动装箱(autoboxing)、拆箱(unboxing)是自J2SE 5.0开始提供的功能。一般我们要创建一个类的对象的时候,我们会这样:Class a = new Class(parameter); 当我们创建一个Integer对象时,...
分类:编程语言   时间:2014-10-10 23:42:04    阅读次数:340
java int与integer的区别
java int与integer的区别int与integer的区别从大的方面来说就是基本数据类型与其包装类的区别:int 是基本类型,直接存数值,而integer是对象,用一个引用指向这个对象1.Java 中的数据类型分为基本数据类型和复杂数据类型int 是前者而integer 是后者(也就是一个类...
分类:编程语言   时间:2014-10-10 22:49:34    阅读次数:212
【LeetCode】Integer to Roman 和 Roman to Integer
【题目】 Given a roman numeral, convert it to an integer. Or, Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 【罗马数字】 1~9: {"I", "II", "III...
分类:其他好文   时间:2014-10-10 22:23:44    阅读次数:182
Triangle---minimum path sum
动态规划class Solution: # @param triangle, a list of lists of integers # @return an integer def minimumTotal(self, triangle): depth=len(tr...
分类:其他好文   时间:2014-10-10 20:59:14    阅读次数:202
Gray Code
[leetcode]Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0....
分类:其他好文   时间:2014-10-10 15:07:44    阅读次数:167
Leetcode_num14_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,所以我们只需考虑...
分类:其他好文   时间:2014-10-10 13:32:24    阅读次数:200
HDU 2155 Matrix
MatrixTime Limit: 3000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:215564-bit integer IO format:%lld Java class name:MainGive...
分类:其他好文   时间:2014-10-10 00:02:31    阅读次数:250
delphi 线程
先看一个非多线程的例子, 代码执行时不能进行其它操作(譬如拖动窗体): ?MyMethod;??i:?Integer;???i?:=??????????Form1.Canvas.Lock; ????Form1.Canvas.TextOut(,?,?IntToStr(i)); ???...
分类:编程语言   时间:2014-10-09 19:01:07    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!