Description
The official capital and the cultural capital of Berland are connected by a single road running through n regions. Each region has a unique climate, so the i-th (1?≤?i?≤?n) region
has...
分类:
其他好文 时间:
2014-11-04 17:33:03
阅读次数:
169
这道题 我没看出来 他只可以往下走,我看到的8-connected ;所以今天写一下如果是8-connected 怎么解;其实说白了这个就是从上到下走一条线到达最后一行的距离最小; 从Map【a】【b】 到Map【a】【b+1】 的距离是Map【a】【b+1】 以此类推:建图即可;然后在加一个点.....
分类:
其他好文 时间:
2014-11-03 13:00:19
阅读次数:
264
From Metalink:Problem Description:====================When your server is not connected to the network and you try to connect inServer Manager (svrmgr...
分类:
其他好文 时间:
2014-11-02 16:12:41
阅读次数:
196
--1.实验环境 SQL> conn scott/tiger Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 Connected as scott@howe SQL> drop table record p...
分类:
其他好文 时间:
2014-10-31 22:09:46
阅读次数:
169
What a find! Anna Locke has just bought several links of chain some of which may be connected. They are made from zorkium, a material that was frequently used to manufacture jewelry in the last centur...
分类:
其他好文 时间:
2014-10-31 01:15:29
阅读次数:
242
Problem Description
A school bought the first computer some time ago(so this computer's id is 1). During the recent years the school bought N-1 new computers. Each new computer was connected to one...
分类:
其他好文 时间:
2014-10-25 18:51:08
阅读次数:
133
树的判定
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edge...
分类:
其他好文 时间:
2014-10-17 09:23:24
阅读次数:
172
1.本地连接
SQL> conn scott/tiger
Connected.
SQL> select sid,server from v$sessionwhere username='SCOTT';
SID SERVER
---------- ---------
42 DEDICATED
SQL> select sid,server,paddr,processf...
分类:
其他好文 时间:
2014-10-17 02:26:23
阅读次数:
200
server端:importsocket#导入socket模块
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host=‘‘
port=6074
s.bind((host,port))#绑定主机和端口
s.listen(5)#监听传入连接,操作系统可以挂起的最大连接数
conn,addr=s.accept()#接受连接并返回(conn,addr)conn用来接..
分类:
编程语言 时间:
2014-10-15 16:19:51
阅读次数:
161
m种阳离子 n种阴离子 然后一个m*n的矩阵 第i行第j列为1代表第i种阴离子和第j种阴离子相互吸引 0表示排斥
求在阳离子和阴离子都至少有一种的情况下 最多存在多少种离子可以共存
阴阳离子都至少需要存在一种 那么可以枚举哪2种离子共存 假设枚举a b 然后找到所有的和a可以共存的阴离子(设为x集合)以及和b共存的阳离子(设为y集合)
现在只需求x集合中和y集合中最多有多少个离子可以共存 ...
分类:
其他好文 时间:
2014-10-11 19:55:26
阅读次数:
222