最少步数时间限制:3000 ms | 内存限制:65535 KB 难度:4描述这有一个迷宫,有0~8行和0~8列:1,1,1,1,1,1,1,1,11,0,0,1,0,0,1,0,11,0,0,1,1,0,0,0,11,0,1,0,1,1,0,1,11,0,0,0,0,1,0,0,11,1,0,1,...
分类:
其他好文 时间:
2015-08-04 15:16:07
阅读次数:
209
时间限制:3000 ms
| 内存限制:65535 KB
难度:4
描述南阳理工学院校园里有一些小河和一些湖泊,现在,我们把它们通一看成水池,假设有一张我们学校的某处的地图,这个地图上仅标识了此处是否是水池,现在,你的任务来了,请用计算机算出该地图中共有几个水池。
输入第一行输入一个整数N,表示共有N组测试数据
每一组数据都是先输入该地图的行数m(0
...
分类:
其他好文 时间:
2015-08-04 11:11:01
阅读次数:
126
??
#include
#include
#include
//二叉链表
typedef struct node{
char data;//节点数据元素
struct node *lchild;//指向左孩子
struct node *rchild;//指向右孩子
}BiNode,*BTree;
//利用后序和中序建立二叉树
void GetPreOrder...
分类:
其他好文 时间:
2015-08-03 22:50:42
阅读次数:
176
??
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
int d, I;
while(scanf("%d%d",&d,&I)&&(d+I))
{
int ...
分类:
其他好文 时间:
2015-08-03 16:57:29
阅读次数:
113
??
和HDUOJ上的一模一样 就找搬过来了
#include
#include
#define N 1000
char x[N],y[N];
int a[N+1];
int main()
{
int g,h=0;
scanf("%d",&g);
while(g--)
{
int k1,k2,t=0,m,n,k,i,j,l;
scanf("%s %s"...
分类:
其他好文 时间:
2015-08-02 21:40:11
阅读次数:
124
??
#include
#include
#include
#define N 1000
#include
using namespace std;
stack str;//字符栈 转化为后缀式
stack num;//数字栈 计算值
char s1[N],s2[N],s3[1000000];
int top;
int com(char x)//比较优先级
{
...
分类:
其他好文 时间:
2015-08-01 19:02:27
阅读次数:
78
??
#include
#include
#include
#define N 1000
using namespace std;
stack op;//定义保存运算符的栈
char s1[N],s2[N];
int priority(char ch)//定义运算符的优先级
{
int num;
switch(ch)
{
...
分类:
其他好文 时间:
2015-08-01 17:27:23
阅读次数:
117
题目27
题目信息
运行结果
本题排行
讨论区
水池数目
时间限制:3000 ms | 内存限制:65535 KB
难度:4
描述南阳理工学院校园里有一些小河和一些湖泊,现在,我们把它们通一看成水池,假设有一张我们学校的某处的地图,这个地图上仅标识了此处是否是水池,现在,你的任务来了,请用计算机算出该地图中共有几个水池。
输入第...
分类:
其他好文 时间:
2015-08-01 14:21:00
阅读次数:
111
背包问题时间限制:3000ms | 内存限制:65535KB难度:3描述现在有很多物品(它们是可以分割的),我们知道它们每个物品的单位重量的价值v和重量w(1 2 #include 3 using namespace std; 4 5 struct ac 6 { 7 int a, b;...
分类:
其他好文 时间:
2015-07-31 23:19:01
阅读次数:
184
寻找最大数时间限制:1000 ms | 内存限制:65535 KB 难度:2描述请在整数 n 中删除m个数字, 使得余下的数字按原次序组成的新数最大,比如当n=92081346718538,m=10时,则新的最大数是9888输入第一行输入一个正整数T,表示有T组测试数据每组测试数据占一行,每行有两个...
分类:
其他好文 时间:
2015-07-31 14:41:37
阅读次数:
98