首先看下面的例程type TMyThread = class(TThread) protected procedure Execute; override; end;procedure TMyThread.Execute;var i: Integer;begin FreeOnTe...
#!/usr/bin/env python
#coding=utf-8
import socket
def convert_integer():
data=1234
#32-bit
print "Original: %s => Long host byte order: %s, Network byte order: %s" %(data,socket.ntohl(data),so...
分类:
其他好文 时间:
2015-04-24 12:35:13
阅读次数:
209
点击打开杭电1047
Problem Description
One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums o...
分类:
编程语言 时间:
2015-04-24 10:42:56
阅读次数:
158
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 o...
分类:
移动开发 时间:
2015-04-24 09:03:57
阅读次数:
117
Lowest BitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 9273 Accepted Submission(s): 6824Problem Description
Given an positive integer A...
分类:
其他好文 时间:
2015-04-23 23:32:14
阅读次数:
185
public class ArrayTest03{ /* Name:数组排序,冒泡法 Power by :Stuart Date:2015-4-23*/ public static void main(String args[]){ //定义一个integer数组...
分类:
编程语言 时间:
2015-04-23 23:29:03
阅读次数:
224
Crazy ShoppingTime Limit: 3000msMemory Limit: 65536KBThis problem will be judged onZJU. Original ID:352464-bit integer IO format:%lld Java class name:...
分类:
其他好文 时间:
2015-04-23 23:24:05
阅读次数:
190
统计总数: public Integer countAll1() { String hql = "select count(*) from News as news"; List list = getHibernateTemplate().find(hql); return lis...
分类:
Web程序 时间:
2015-04-23 23:15:17
阅读次数:
169
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-04-23 21:46:26
阅读次数:
222