题意:给我们两个序列,看能否通过压栈,出栈将第一个序列转换成第二个。思路:将序列 1
依次压栈,同时看是否和序列 2 当前元素相同代码如下:#include#include#define max 100using namespace
std;int main(){ stacks; int...
分类:
其他好文 时间:
2014-05-17 01:47:36
阅读次数:
218
Error log:Problem
Description-------------------1.Prepare DatabaseRun the RCU utilityCreate
Prefix: DEVSelect:IdentityManagement->Oracle Adaptive Acce...
分类:
其他好文 时间:
2014-05-16 21:18:44
阅读次数:
426
HTTP协议HTTP(HyperText Transfer
Protocol)协议是应用层协议,是一个基于请求(request)/响应(response)模式的、无状态的(stateless)协议HHTP
URLhttp://hostname[:port][abs_path]浏览器与服务器连接的一般...
分类:
编程语言 时间:
2014-05-15 16:34:34
阅读次数:
384
Flo's Restaurant
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1112 Accepted Submission(s): 342
Problem Description
Sick and t...
分类:
其他好文 时间:
2014-05-15 05:18:19
阅读次数:
267
悼念512汶川大地震遇难同胞——珍惜现在,感恩生活
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 13420 Accepted Submission(s): 5644
Problem Description
急!灾...
分类:
其他好文 时间:
2014-05-15 04:45:18
阅读次数:
238
Problem Description
电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。
某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。...
分类:
其他好文 时间:
2014-05-15 04:01:20
阅读次数:
284
过山车
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 9426 Accepted Submission(s): 4151
Problem Description
RPG girls今天和大家一起去游乐场玩,终于可以...
分类:
其他好文 时间:
2014-05-15 03:50:16
阅读次数:
308
题目连接:http://poj.org/problem?id=1436
题意:给一些线段,每个线段有三个值y1, y2, x代表起点为(x, y1),终点为(x, y2)的线段。当从一个线段可以作水平线到另一个线段并且不穿过其他线段时,就称这两个线段时水平可见的。当三个线段可以两两水平可见,就称为形成一个线段三角。问:在这些线段中有多少个这样的线段三角?
分析:可以把每条线段看做是一个点,如果...
分类:
其他好文 时间:
2014-05-14 15:27:25
阅读次数:
282
Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
分类:
其他好文 时间:
2014-05-13 13:54:14
阅读次数:
463
Prime Ring Problem
Problem Description
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent...
分类:
其他好文 时间:
2014-05-13 11:54:17
阅读次数:
444