HeadshotTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:386964-bit integer IO format:%lld Java class name:MainYo...
分类:
其他好文 时间:
2015-07-03 15:18:20
阅读次数:
98
8 String to Integer (atoi)链接:https://leetcode.com/problems/string-to-integer-atoi/
问题描述:
Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you wa...
分类:
其他好文 时间:
2015-07-03 14:03:32
阅读次数:
105
[对象和类型]
学生的属性:
小明 对象
姓名:男
性别:
年龄:
身高:
体重:
籍贯
五种基本对象类型
字符串 (string),简记为 str
使用 ' ' 或 " " 括起来的一系列字符
整数(integer),简记为 int
十进制:21,八进制:025,十六进制:0x15
浮点数(float)1.48,21.0,21.,.21,2.1E...
分类:
编程语言 时间:
2015-07-03 09:17:11
阅读次数:
147
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares...
分类:
移动开发 时间:
2015-07-03 09:15:07
阅读次数:
131
Description
An array of positive integers a1,?a2,?...,?an is given. Let us consider
its arbitrary subarray al,?al?+?1...,?ar, where 1?≤?l?≤?r?≤?n.
For every positive integer s denote by Ks the...
分类:
其他好文 时间:
2015-07-03 06:57:26
阅读次数:
135
此文转自csdn,看完瞬间就明白了首先,我们知道,Java中的数据类型分为两种,基本数据类型和引用数据类型。而基本数据类型,为什么不直接使用他们的包装类呢,例如Integer、Long等等呢?下面是Thinking in Java 中的解释:有 一系列类需特别对待;可将它们想象成“基本”、“主要”或...
分类:
编程语言 时间:
2015-07-03 00:08:30
阅读次数:
670
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1496题意:Consider equations having the following form: a*x1^2+b*x2^2+c*x3^2+d*x4^2=0 a, b, c, d are integer...
分类:
其他好文 时间:
2015-07-02 23:57:21
阅读次数:
155
Sereja and SuffixesTime Limit: 1000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:368B64-bit integer IO format:%I64d Ja...
分类:
其他好文 时间:
2015-07-02 23:57:10
阅读次数:
130
刚学Oracle,学习学习别人的代码。这段代码时从下面的博文中摘取的:http://www.cnblogs.com/mq0036/p/4155774.htmldeclare l_dept integer := 20; currtime date := sysdate; l_nam...
分类:
数据库 时间:
2015-07-02 23:52:26
阅读次数:
220
题目:
Given an array of integers and an integer k,
find out whether there there are two distinct indices i and j in
the array such that nums[i] = nums[j] and
the difference between i and j is
a...
分类:
编程语言 时间:
2015-07-02 22:47:39
阅读次数:
192