- 浏览: 37002 次
最新评论
文章列表
1,首先是html页面(imgTest.jsp)
<span class="htgl_addpro_content_high_content" style="margin-left: 10px;">
<p>
<img id="imgsrc" src="<%=basePath%>images/nopic.gif" width="131" height="180">< ...
说明:
我是用root用户在终端登陆的,如果是非root用户,那在命令前需要加上"sudo",你懂的...
第一步:在Ubuntu下安装Postgresql
1.使用 apt-get install 安装 root@server2-virtual-machine:~# apt-get install -y postgresql-9.1 postgresql-client-9.1 postgresql-contrib-9.1 postgresql-server-dev-9.1
[代码说明]
...
Eclipse快捷键与使用技巧总结(转)
- 博客分类:
- Linux
此文档主要介绍个人认为比较实用的技巧,常用技巧不做介绍。资料来源于网络,自己再集中整理的。
一、实用类快捷键
1 常用熟悉的快捷键
CTRL+C(复制)、CTRL+X(剪切)、CTRL+Z(撤销)、CTRL+F(查找)、CTRL+H(搜索文件或字符串)、CTRL+Y(重做)、CTRL+/(双斜杠注释)、ALT+/(提示)、CTRL+SHIFT+F(格式化代码)
2 编码辅助类
1)CTRL+D
删除当前行。
dpkg的用法(转)
- 博客分类:
- Linux
dpkg是一个Debian的一个命令行工具,它可以用来安装、删除、构建和管理Debian的软件包。下面是它的一些命令解释:1)安装软件命令行:dpkg -i <.deb file name>示例:dpkg -i avg71flm_r28-1_i386.deb2)安装一个目录下面所有的软件包命 ...
题目描述
ACM俱乐部要照大合照了!
"顺序怎么排?"
"按会员编号吗?"
"我们可是学计算机考研的人唉!"
"那么还是以会员编号为依据吧。但是不是单纯按编号大小排列,而是让这些编号连在一起 ...
题目描述
ACM俱乐部最近赚大钱了,要把n元奖金分给若干个员工(至少两个)。员工的数目可以随意指定,但是这些员工领得的奖金数额必须构成一个连续的序列。比如5个人,分别取得3,4,5,6,7元。
输入格式
输入有多组数据。每组数据一行,包含一个正整数n(小于等于2^20)。
输出
对应每组数据,输出若干行。每种分配方法输出一行(按员工数目由多到少排序),一行内输出各员工的奖金(由少到多排序,以空格分隔),行尾也请输出一个空格。
样例输入
题目描述
ACM俱乐部里的那些无聊家伙经常举行数数比赛- -。比赛规则就是对于一个给出的正整数n,把1到n的正整数写在纸上,然后数里面数字1被写出来的次数。
输入格式
输入有多组数据。每组数据一行,包含一个正整数n(小于等于2^26)。
输出
对应每组数据,输出所求的1的出现次数。
样例输入
1120
Count The Pairs
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 302 Accepted Submission(s): 159
Problem Description
With the 60th anniversary celebration of Nanjing University of Science and Technology coming soon, the university se ...
Fishhead’s Little Game
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 377 Accepted Submission(s): 89
Problem Description
There is a 3 by 3 grid and each vertex is assigned a number.
It looks like JiuGongGe, but they are different, ...
HDU 4628 Pieces (状压DP)
- 博客分类:
- ACM
Pieces
Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 311 Accepted Submission(s): 172
Problem Description
You heart broke into pieces.My string broke into pieces.But you will recover one day,and my string will never go back.Given a str ...
2150:神奇的工号 (剑指offer)
- 博客分类:
- 面试题
2150:神奇的工号分数: 2
时间限制:1 秒
内存限制:128 兆
特殊判题: 否
提交:4
解决: 4
题目描述
ACM俱乐部里员工的都有一个工号,这个工号的二进制表达中1的个数越多,这个员工的级别
Cable TV Network
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 3442
Accepted: 1602
Description
The interconnection of the relays in a cable TV network is bi-directional. The network is connected if there is at least one interconnection path between each p ...
Get Luffy Out
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 6609
Accepted: 2531
Description
Ratish is a young man who always dreams of being a hero. One day his friend Luffy was caught by Pirate Arlong. Ratish set off at once to Arlong's island. When he got the ...
Knights of the Round Table
Time Limit: 7000MS
Memory Limit: 65536K
Total Submissions: 7840
Accepted: 2450
Description
Being a knight is a very attractive career: searching for the Holy Grail, saving damsels in distress, and drinking with the other knights are fun things to ...
Slim Span
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 5412
Accepted: 2842
Description
Given an undirected weighted graph G, you should find one of spanning trees specified as follows.
The graph G is an ordered pair (V, E), where V is a set of vertic ...