1 procedure TForm1.Button1Click(Sender: TObject); 2 var 3 ja,jo: ISuperObject; 4 I: Integer; 5 begin 6 ja := SA([]); jo :=SO(); 7 jo.S['index...
分类:
编程语言 时间:
2014-12-15 18:56:48
阅读次数:
662
Determine whether an integer is a palindrome. Do this without extra space.
思路:想办法把第一个和最后一个数字剥离出来比较
#include
int isPalindrome(int x){
int d=x/10,i=1;
int begin=0,end=0;
if(x<0) return 0...
分类:
其他好文 时间:
2014-12-15 17:22:08
阅读次数:
121
First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Yo...
分类:
其他好文 时间:
2014-12-15 15:10:31
阅读次数:
138
方便买彩票用Java实现简单代码。importjava.util.*;
publicclassDoubleColorNum
{
publicstaticvoidmain(String[]args)
{
Randomr=newRandom();
Set<Integer>set=newTreeSet<Integer>();
//向set中添加红球
while(set.size()!=6)
{
set.add(r.nextInt(33)+1);
}
..
分类:
编程语言 时间:
2014-12-15 13:53:20
阅读次数:
250
Password
Time Limit: 3000ms
Memory Limit: 131072KB
This problem will be judged on UVA.
Original ID: 1262
64-bit integer IO format: %lld
Java class name: Main
Prev
Submit Status...
分类:
其他好文 时间:
2014-12-15 12:14:14
阅读次数:
263
做项目时犯二没有搞清楚优先级的问题从而暴露出一个Integer相加而产生的类型转换的问题Integer a;Integer b;Integer c;c= a+b==null?a:b;java编译器报 Theoperator==isundefinedfortheargumenttype(s)int,n...
分类:
其他好文 时间:
2014-12-15 11:48:45
阅读次数:
124
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:
其他好文 时间:
2014-12-15 09:09:52
阅读次数:
166
PHP 生成XML数据
1)组装字符串 :简单,容易理解,常用
2)使用系统类
如:
DomDocument
下面详细说明 组装字符串 生成XML数据
xml数据需要1.头信息
2.根节点
3.数据
class Response{
/**
*按json方式输出通信数据
*@param integer $code 状态...
分类:
Web程序 时间:
2014-12-15 09:03:54
阅读次数:
211
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 convertin...
分类:
其他好文 时间:
2014-12-15 09:03:15
阅读次数:
154
造成这个问题的原因很多,我遇到的主要是因为这里的parameterType="java.lang.Integer"resultType="java.lang.Integer">被我写错了,因为是copy过来的,忘记了改变参数为parameterType="map"resultMap="BaseRes...
分类:
移动开发 时间:
2014-12-15 08:53:06
阅读次数:
183