#step 1: groupadd -g 2000 dba useradd -g 2000 -m -s /bin/bash -u 2000 grid useradd -g 2000 -m -s /bin/bash -u 2005 oracle mkdir -p /u01/app/grid mkdir -p /u01/app/oracle chown grid:dba /u01/ap
转载
2013-12-21 14:07:00
52阅读
2评论
#step 1:
groupadd -g 2000 dbauseradd -g 2000 -m -s /bin/bash -u 2000 griduseradd -g 2000 -m -s /bin/bash -u 3000 oracle
mkdir -p /u01/app/gridmkdir -p /u01/app/oracle
chown grid:dba /u01/app/gridc
转载
2013-07-04 21:05:00
91阅读
2评论
Ubuntu 14.04 LTS 安装Oracle 11GR2 ,经过几天的研究以及参考网上的说明,终于安装成功了 http://www.th7.cn/db/Oracle/201406/58542.shtml1.将系统更新到最新:sudo apt-get updatesudo apt-get dist-upgrade2.如果使用的Ubuntu不是桌面版(如Ubuntu&nbs
转载
精选
2014-11-26 17:35:00
758阅读
我新安装的Linux Mint 13 “Maya” Xfce RC,但因为是基于Xubuntu 12.04,所以对于XUbuntu与Ubuntu的12.04都应该可以适用 1、下载oracle express的安装介质 http://www.oracle.com/technetwork/products/express-edition/downloads/index.html Oracle
原创
2012-07-16 23:26:28
853阅读
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 const int MAXN=10000; 8 using namespace std; 9 struct node10 {11 double x1,x2;12 } p[MAXN];13 bool cmp(node a,node b)14 {15 return a.x2m) flag=1;30 double c=sqrt(m*m-y*y);31 p[i].x1=x+c;32 p[i].x...
转载
2013-08-05 18:39:00
34阅读
2评论
Radar Installation (贪心)传送门思路:一开始没看到雷达只能放在xxx轴上,这样就可以转换为区间覆盖问题,预处理出每个岛屿雷达可以放置的区间,然后贪心每次选取区间的最右端,如果当前区间的左端大于它,则sum++sum++sum++,更新雷达位置当前区间的右端。时间复杂度:O(nlogn)O(nlogn)O(nlogn)#include<iostream>#include<vector>#include<algorithm> #include
原创
2022-01-21 11:50:20
27阅读
特点:
使用ubuntu-14.04.x-desktop-amd64.iso liveCD模式 + Casper-rw 本地文件
不降级默认的gcc版本,(liveCD 自带默认为 gcc 4.8);仅需要建立“gcc -Wl,--no-as-needed” 的替代sh
需要安装libaio,(16.04中版本默认仓库内的libaio有问题,必须安装老的libaio版本,和libaio库的编译方式
转载
2016-08-09 11:54:00
46阅读
2评论
Oracle仍然没有把当前广泛流行的ubuntu发行版考虑在内!Oracle11gR2的安装比10gR2简单多了,增强了linux内核参数检查及自动修正功能、依赖包的检查和自动修正功能。当然,自动修正功能不一定好使。另外安装界面和步骤也较之前智能合理了!主要关键点就是安装前先建立几个软连接命令: ln -s /usr/bin/awk /bin/awkln -s /usr/bin/basenam
转载
2009-12-31 12:00:00
28阅读
2评论
题意:假设海岸线是一条无限延伸的直线。陆地在海岸线的一侧,而海洋在另一侧。每一个小的岛屿是海洋上的一个点。雷达坐落于海岸线上,只能覆盖d距离,所以如果小岛能够被覆盖到的话,它们之间的距离最多为d。 题目要求计算出能够覆盖给出的所有岛屿的最少雷达数目。 /* 对于每个小岛,按照横坐标从小到大排序,并且
转载
2016-07-06 11:01:00
80阅读
2评论
#include
#include
#include
using namespace std;
int n,d,ans;
struct point
{ int x,y;
}p[1010];
bool operator temp) t=temp; else if(p[i].y*p[i].y+(t-p[i].x)*(t-p[i].x)>n>>d && (n||d)) {ok=1; for(i=0;i>p[i].x>>p[i].y; if(p[i].y>d) ok=0; } ...
转载
2013-05-18 19:41:00
19阅读
2评论
Description Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating
转载
2017-09-09 15:32:00
34阅读
2评论
【题目链接】 http://poj.org/problem?id=1328 【算法】 每个雷达都位于笛卡尔坐标系的x轴上,因此,对于每个岛屿,我们都可以用勾股定理算出它的有效管辖区域 那么,问题就被转化成了 : 给定若干个区间,要求每个区间内都要有一个点,最小化点的个数 我们将这些区间按左端点排序,
转载
2018-06-28 14:13:00
93阅读
2评论
Introduction I've for some time now wanted to do more RF design. Although I have taken some RF design courses, I haven't actually made a single RF des
原创
2021-08-26 09:57:24
53阅读
一、内容假定海岸线是无限长的直线。陆地位于海岸线的一侧,海洋位于另一侧。每个小岛是位于海洋中的一个点。对于任何一个雷达的安装 (均位于海岸线上),只能覆盖 d 距离,因此海洋中的小岛被雷达安装所覆盖的条件是两者间的距离不超过 d 。我们使用卡笛尔坐标系,将海岸线定义为 x 轴。海洋的一侧位于 x 轴上方,陆地的一侧位于下方。给定海洋中每个小岛的位置,并给定雷达安装的覆盖距离,您的任务是写一个...
原创
2021-08-27 14:23:41
135阅读
Radar Installation
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
Description
Assume the coasting is an infinite straight line. Land is in one side of coasti
转载
2021-08-30 14:26:31
37阅读
Radar Installation
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
Submit Status Practice POJ 1328
Appoint description: System Crawler (2015-04-04)
Description
原创
2021-08-31 10:21:12
129阅读
Description Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating
转载
2017-03-09 16:25:00
18阅读
2评论
1.服务进程[root@lvs-master ~]#sh rc.sh[root@lvs-master ~]# cat rc.shservice bluetooth stopservice netfs stopservice ip6tables stopchkconfig bluetooth offchkconfig ip6tables offchkconfig netfs offchkconfig
原创
2015-04-22 15:50:29
1761阅读